update dockerfiles

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-01-01 15:47:03 -05:00
parent 9bbde9b4cf
commit 35412e397f
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ RUN buildDeps=' \
&& 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 -xzf - -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

View File

@ -1,6 +1,6 @@
FROM java:8-alpine FROM java:8-alpine
ENV ZOOKEEPER_VERSION 3.5.3 ENV ZOOKEEPER_VERSION 3.5.3-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
@ -14,7 +14,7 @@ RUN buildDeps=' \
&& 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 -xzf - -C /opt \ && curl -sSL "http://apache.mirrors.pair.com/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz" | tar -xf - -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