mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-01-30 17:13:46 +01:00
zookeeper
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
4ade5b9b48
commit
11bb521996
24
zookeeper/Dockerfile
Normal file
24
zookeeper/Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM java:openjdk-7-jdk-alpine
|
||||
|
||||
ENV ZOOKEEPER_VERSION 3.4.8
|
||||
ENV PATH $PATH:/opt/zookeeper/bin/
|
||||
|
||||
# the start files for zookeeper use bash
|
||||
RUN apk --update add \
|
||||
bash \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN buildDeps=' \
|
||||
curl \
|
||||
' \
|
||||
&& echo "==> Installing dependencies..." \
|
||||
&& apk --update 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 \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
ENTRYPOINT ["zkServer.sh", "start-foreground"]
|
Loading…
Reference in New Issue
Block a user