dockerfiles/zookeeper/3.5/Dockerfile
Jess Frazelle a6a529eda0 fix zookeeper
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
2019-05-25 17:47:15 -04:00

24 lines
720 B
Docker

FROM java:8-alpine
ENV ZOOKEEPER_VERSION 3.5.5
ENV PATH $PATH:/opt/zookeeper/bin/
# the start files for zookeeper use bash
RUN apk --no-cache add \
bash
RUN buildDeps=' \
curl \
tar \
' \
&& echo "==> Installing dependencies..." \
&& apk --no-cache add --virtual build-deps $buildDeps \
&& echo "==> Downloading Zookeeper..." \
&& mkdir -p /opt \
&& curl -sSL "http://apache.osuosl.org/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/apache-zookeeper-${ZOOKEEPER_VERSION}.tar.gz" | tar -xzf - -C /opt \
&& mv /opt/apache-zookeeper-${ZOOKEEPER_VERSION} /opt/zookeeper \
&& cp /opt/zookeeper/conf/zoo_sample.cfg /opt/zookeeper/conf/zoo.cfg \
&& apk del build-deps
ENTRYPOINT ["zkServer.sh", "start-foreground"]