Use one image for all the Druid services

This commit is contained in:
2022-10-04 21:30:17 +01:00
parent 2d6b3bb090
commit aea1c7faf6
4 changed files with 142 additions and 82 deletions

View File

@@ -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
View 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