add zookeeper

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-01-01 12:59:52 -05:00
parent c19ed0daa7
commit 9bbde9b4cf
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

22
zookeeper/3.5/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM java:8-alpine
ENV ZOOKEEPER_VERSION 3.5.3
ENV PATH $PATH:/opt/zookeeper/bin/
# the start files for zookeeper use bash
RUN apk --no-cache add \
bash
RUN buildDeps=' \
curl \
' \
&& echo "==> Installing dependencies..." \
&& apk --no-cache add --virtual build-deps $buildDeps \
&& echo "==> Downloading Zookeeper..." \
&& mkdir -p /opt \
&& curl -sSL http://apache.mirrors.pair.com/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz | tar -xzf - -C /opt \
&& mv /opt/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"]