From 50777ef809741a4de34cfda2a36ebf8ca048ee40 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Fri, 15 May 2020 09:39:44 -0700 Subject: [PATCH] add zookeeper Signed-off-by: Jess Frazelle --- zookeeper/3.6/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 zookeeper/3.6/Dockerfile diff --git a/zookeeper/3.6/Dockerfile b/zookeeper/3.6/Dockerfile new file mode 100644 index 0000000..019c80b --- /dev/null +++ b/zookeeper/3.6/Dockerfile @@ -0,0 +1,23 @@ +FROM openjdk:8-alpine + +ENV ZOOKEEPER_VERSION 3.6.1 +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"]