-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (24 loc) · 2.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM mbe1224/confluent-base:3.3.0
ENV COMPONENT=zookeeper
EXPOSE 2181 2888 3888
RUN echo "===> installing ${COMPONENT}..." \
&& apt-get update && apt-get install -y confluent-kafka-${SCALA_VERSION}=${KAFKA_VERSION}${CONFLUENT_PLATFORM_LABEL}-${CONFLUENT_DEB_VERSION} \
&& echo "===> clean up ..." \
&& apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* \
&& echo "===> Setting up ${COMPONENT} dirs" \
&& mkdir -p /var/lib/${COMPONENT}/data /var/lib/${COMPONENT}/log /etc/${COMPONENT}/secrets /etc/confluent/docker \
&& chmod -R ag+w /etc/kafka /var/lib/${COMPONENT}/data /var/lib/${COMPONENT}/log /etc/${COMPONENT}/secrets \
&& wget "https://github.com/raw/confluentinc/cp-docker-images/${COMMIT_SHA}/debian/zookeeper/include/etc/confluent/docker/ensure" -O "/etc/confluent/docker/ensure" \
&& wget "https://github.com/raw/confluentinc/cp-docker-images/${COMMIT_SHA}/debian/zookeeper/include/etc/confluent/docker/launch" -O "/etc/confluent/docker/launch" \
&& wget "https://github.com/raw/confluentinc/cp-docker-images/${COMMIT_SHA}/debian/zookeeper/include/etc/confluent/docker/log4j.properties.template" -O "/etc/confluent/docker/log4j.properties.template" \
&& wget "https://github.com/raw/confluentinc/cp-docker-images/${COMMIT_SHA}/debian/zookeeper/include/etc/confluent/docker/run" -O "/etc/confluent/docker/run" \
&& wget "https://github.com/raw/confluentinc/cp-docker-images/${COMMIT_SHA}/debian/zookeeper/include/etc/confluent/docker/tools-log4j.properties.template" -O "/etc/confluent/docker/tools-log4j.properties.template" \
&& wget "https://github.com/raw/confluentinc/cp-docker-images/${COMMIT_SHA}/debian/zookeeper/include/etc/confluent/docker/zookeeper.properties.template" -O "/etc/confluent/docker/zookeeper.properties.template" \
&& chmod a+x "/etc/confluent/docker/ensure" \
&& chmod a+x "/etc/confluent/docker/launch" \
&& chmod a+x "/etc/confluent/docker/run"
COPY "/include/etc/confluent/docker/configure" "/etc/confluent/docker/configure"
COPY "/include/etc/confluent/docker/myid.template" "/etc/confluent/docker/myid.template"
RUN chmod a+x "/etc/confluent/docker/configure"
VOLUME ["/var/lib/${COMPONENT}/data", "/var/lib/${COMPONENT}/log", "/etc/${COMPONENT}/secrets"]
CMD ["/etc/confluent/docker/run"]