forked from 31z4/zookeeper-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,18 @@ MAINTAINER Elisey Zanko <[email protected]> | |
RUN apk add --no-cache \ | ||
bash | ||
|
||
ENV ZOOKEEPER_USER zookeeper | ||
ARG ZOOKEEPER_USER=zookeeper | ||
# If you change this then you have to change dataDir in zoo.cfg | ||
ENV ZOOKEEPER_DATA_DIR /tmp/zookeeper | ||
ARG ZOOKEEPER_DATA_DIR=/tmp/zookeeper | ||
|
||
# Add a user and make dirs | ||
RUN set -x \ | ||
&& adduser -D "$ZOOKEEPER_USER" \ | ||
&& mkdir -p "$ZOOKEEPER_DATA_DIR" \ | ||
&& chown -R "$ZOOKEEPER_USER:$ZOOKEEPER_USER" "$ZOOKEEPER_DATA_DIR" | ||
|
||
ENV GPG_KEY D0BC8D8A4E90A40AFDFC43B3E22A746A68E327C1 | ||
ENV DISTRO_NAME zookeeper-3.3.6 | ||
ENV PATH $PATH:/$DISTRO_NAME/bin | ||
ARG GPG_KEY=D0BC8D8A4E90A40AFDFC43B3E22A746A68E327C1 | ||
ARG DISTRO_NAME=zookeeper-3.3.6 | ||
|
||
# Download Apache Zookeeper, verify its PGP signature, untar and clean up | ||
RUN set -x \ | ||
|
@@ -40,4 +39,5 @@ USER $ZOOKEEPER_USER | |
VOLUME ["$ZOOKEEPER_DATA_DIR"] | ||
EXPOSE 2181 | ||
|
||
ENV PATH $PATH:/$DISTRO_NAME/bin | ||
CMD ["zkServer.sh", "start-foreground"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,18 @@ MAINTAINER Elisey Zanko <[email protected]> | |
RUN apk add --no-cache \ | ||
bash | ||
|
||
ENV ZOOKEEPER_USER zookeeper | ||
ARG ZOOKEEPER_USER=zookeeper | ||
# If you change this then you have to change dataDir in zoo.cfg | ||
ENV ZOOKEEPER_DATA_DIR /tmp/zookeeper | ||
ARG ZOOKEEPER_DATA_DIR=/tmp/zookeeper | ||
|
||
# Add a user and make dirs | ||
RUN set -x \ | ||
&& adduser -D "$ZOOKEEPER_USER" \ | ||
&& mkdir -p "$ZOOKEEPER_DATA_DIR" \ | ||
&& chown -R "$ZOOKEEPER_USER:$ZOOKEEPER_USER" "$ZOOKEEPER_DATA_DIR" | ||
|
||
ENV GPG_KEY 2A4A8024702DD5FC061ABCD8BE3B6B9392BC2F2B | ||
ENV DISTRO_NAME zookeeper-3.4.8 | ||
ENV PATH $PATH:/$DISTRO_NAME/bin | ||
ARG GPG_KEY=2A4A8024702DD5FC061ABCD8BE3B6B9392BC2F2B | ||
ARG DISTRO_NAME=zookeeper-3.4.8 | ||
|
||
# Download Apache Zookeeper, verify its PGP signature, untar and clean up | ||
RUN set -x \ | ||
|
@@ -40,4 +39,5 @@ USER $ZOOKEEPER_USER | |
VOLUME ["$ZOOKEEPER_DATA_DIR"] | ||
EXPOSE 2181 | ||
|
||
ENV PATH $PATH:/$DISTRO_NAME/bin | ||
CMD ["zkServer.sh", "start-foreground"] |