mirror of https://github.com/apache/druid.git
63ee69b4e8
* Claim full support for Java 17. No production code has changed, except the startup scripts. Changes: 1) Allow Java 17 without DRUID_SKIP_JAVA_CHECK. 2) Include the full list of opens and exports on both Java 11 and 17. 3) Document that Java 17 is both supported and preferred. 4) Switch some tests from Java 11 to 17 to get better coverage on the preferred version. * Doc update. * Update errorprone. * Update docker_build_containers.sh. * Update errorprone in licenses.yaml. * Add some more run-javas. * Additional run-javas. * Update errorprone. * Suppress new errorprone error. * Add exports and opens in ForkingTaskRunner for Java 11+. Test, doc changes. * Additional errorprone updates. * Update for errorprone. * Restore old fomatting in LdapCredentialsValidator. * Copy bin/ too. * Fix Java 15, 17 build line in docker_build_containers.sh. * Update busybox image. * One more java command. * Fix interpolation. * IT commandline refinements. * Switch to busybox 1.34.1-glibc. * POM adjustments, build and test one IT on 17. * Additional debugging. * Fix silly thing. * Adjust command line. * Add exports and opens one more place. * Additional harmonization of strong encapsulation parameters. |
||
---|---|---|
.. | ||
Dockerfile | ||
Dockerfile.mariadb | ||
Dockerfile.mysql | ||
DockerfileBuildTarAdvanced | ||
README.md | ||
docker-compose.yml | ||
druid.sh | ||
environment | ||
peon.sh |
README.md
Build
From the root of the repo, run following command:
DOCKER_BUILDKIT=1 docker build -t apache/druid:tag -f distribution/docker/Dockerfile .
Building images on Apple M1/M2
To build images on Apple M1/M2, you need to follow the instructions in this section.
- build Druid distribution from the root of the repo
mvn clean package -DskipTests -Pdist
- build target image
DOCKER_BUILDKIT=1 docker build -t apache/druid:tag -f distribution/docker/Dockerfile --build-arg BUILD_FROM_SOURCE=false .
Run
- Edit
distribution/docker/docker-compose.yml
file to change the tag of Druid's images to the tag that's used in the 'Build' phase above. - Edit
environment
file to suite if necessary. - Run:
docker-compose -f distribution/docker/docker-compose.yml up
MySQL Database Connector
This image contains solely the postgres metadata storage connector. If you need the mysql metadata storage connector, you can use Dockerfile.mysql to add it to the base image above.
docker build -t apache/druid:tag-mysql --build-arg DRUID_RELEASE=apache/druid:tag -f distribution/docker/Dockerfile.mysql .
where druid:tag
is the version of Druid image to use as the base.