druid/distribution/docker
Kashif Faraz 7cf761cee4
Prepare master branch for next release, 26.0.0 (#13401)
* Prepare master branch for next release, 26.0.0

* Use docker image for druid 24.0.1

* Fix version in druid-it-cases pom.xml
2022-11-22 15:31:01 +05:30
..
Dockerfile Support for middle manager less druid, tasks launch as k8s jobs (#13156) 2022-11-02 19:44:47 -07:00
Dockerfile.mariadb support using mariadb connector with mysql extensions (#11402) 2021-07-08 12:25:37 -07:00
Dockerfile.mysql deps: upgrade mysql-connector-java to v5.1.49 (#12704) 2022-06-29 23:15:46 +08:00
DockerfileBuildTarAdvanced Consolidate the number of Dockerfiles (#11187) 2021-05-07 10:41:34 -07:00
README.md Some improvements about Docker (#13059) 2022-09-16 09:25:52 +08:00
docker-compose.yml Prepare master branch for next release, 26.0.0 (#13401) 2022-11-22 15:31:01 +05:30
druid.sh Some improvements about Docker (#13059) 2022-09-16 09:25:52 +08:00
environment Enable msq for docker by default (#13069) 2022-09-11 21:00:32 +05:30
peon.sh Support for middle manager less druid, tasks launch as k8s jobs (#13156) 2022-11-02 19:44:47 -07:00

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.

  1. build Druid distribution from the root of the repo
    mvn clean package -DskipTests -Pdist
    
  2. build target image
    DOCKER_BUILDKIT=1 docker build -t apache/druid:tag -f distribution/docker/Dockerfile --build-arg BUILD_FROM_SOURCE=false .
    

Run

  1. 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.
  2. Edit environment file to suite if necessary.
  3. 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.