Use one image for all the Druid services
This commit is contained in:
@@ -200,7 +200,9 @@ services:
|
||||
retries: 45
|
||||
|
||||
coordinator:
|
||||
image: apache/druid:0.23.0
|
||||
#image: apache/druid:0.23.0
|
||||
image: pathogen/druid:0.23.0
|
||||
build: ./druid
|
||||
container_name: coordinator
|
||||
volumes:
|
||||
- /block/store/druid_shared:/opt/shared
|
||||
@@ -216,7 +218,9 @@ services:
|
||||
- environment
|
||||
|
||||
broker:
|
||||
image: apache/druid:0.23.0
|
||||
#image: apache/druid:0.23.0
|
||||
image: pathogen/druid:0.23.0
|
||||
build: ./druid
|
||||
container_name: broker
|
||||
volumes:
|
||||
- /block/store/broker_var:/opt/druid/var
|
||||
@@ -232,7 +236,9 @@ services:
|
||||
- environment
|
||||
|
||||
historical:
|
||||
image: apache/druid:0.23.0
|
||||
#image: apache/druid:0.23.0
|
||||
image: pathogen/druid:0.23.0
|
||||
build: ./druid
|
||||
container_name: historical
|
||||
volumes:
|
||||
- /block/store/druid_shared:/opt/shared
|
||||
@@ -249,7 +255,9 @@ services:
|
||||
- environment
|
||||
|
||||
middlemanager:
|
||||
image: apache/druid:0.23.0
|
||||
#image: apache/druid:0.23.0
|
||||
image: pathogen/druid:0.23.0
|
||||
build: ./druid
|
||||
container_name: middlemanager
|
||||
volumes:
|
||||
- /block/store/druid_shared:/opt/shared
|
||||
@@ -267,7 +275,9 @@ services:
|
||||
- environment
|
||||
|
||||
router:
|
||||
image: apache/druid:0.23.0
|
||||
#image: apache/druid:0.23.0
|
||||
image: pathogen/druid:0.23.0
|
||||
build: ./druid
|
||||
container_name: router
|
||||
volumes:
|
||||
- /block/store/router_var:/opt/druid/var
|
||||
|
||||
22
docker/druid/Dockerfile
Normal file
22
docker/druid/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
ARG DRUID_VER=0.23.0
|
||||
|
||||
FROM apache/druid:${DRUID_VER} AS druid
|
||||
|
||||
FROM ubuntu:bionic
|
||||
RUN apt-get update && \
|
||||
apt-get install --yes openjdk-8-jre-headless perl-modules && \
|
||||
apt-get clean
|
||||
|
||||
RUN addgroup --system -gid 1000 druid \
|
||||
&& adduser --system --uid 1000 --disabled-password --home /opt/druid --shell /bin/bash --group druid
|
||||
|
||||
COPY --from=druid --chown=druid:druid /opt/druid /opt/druid
|
||||
|
||||
WORKDIR /opt/druid
|
||||
|
||||
USER druid
|
||||
|
||||
EXPOSE 8888/tcp
|
||||
EXPOSE 8081/tcp
|
||||
|
||||
CMD /opt/druid/bin/start-nano-quickstart
|
||||
Reference in New Issue
Block a user