Public | Automated Build

Last pushed: a month ago
Dockerfile
FROM openjdk:8-jre-alpine MAINTAINER Justin Plock <justin@plock.net> ARG MIRROR=http://apache.mirrors.pair.com ARG VERSION=3.4.10 LABEL name="zookeeper" version=$VERSION RUN apk add --no-cache wget bash \ && mkdir -p /opt/zookeeper \ && wget -q -O - $MIRROR/zookeeper/zookeeper-$VERSION/zookeeper-$VERSION.tar.gz \ | tar -xzC /opt/zookeeper --strip-components=1 \ && cp /opt/zookeeper/conf/zoo_sample.cfg /opt/zookeeper/conf/zoo.cfg \ && mkdir -p /tmp/zookeeper EXPOSE 2181 2888 3888 WORKDIR /opt/zookeeper # Only checks if server is up and listening, not quorum. # See https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#sc_zkCommands HEALTHCHECK CMD [ $(echo ruok | nc 127.0.0.1:2181) == "imok" ] || exit 1 VOLUME ["/opt/zookeeper/conf", "/tmp/zookeeper"] ENTRYPOINT ["/opt/zookeeper/bin/zkServer.sh"] CMD ["start-foreground"]
Source Repository