Skip to content

Commit

Permalink
add zookeeper
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed May 15, 2020
1 parent bc9fa38 commit 50777ef
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions zookeeper/3.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 50777ef

Please sign in to comment.