update zookeeper

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-05-21 20:27:26 -04:00
parent fde05a949b
commit b1c97f8361
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

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