jiazhai commented on a change in pull request #342: Issue 338: add first draft 
Docker image including community suggestions
URL: https://github.com/apache/bookkeeper/pull/342#discussion_r130811164
 
 

 ##########
 File path: docker/Dockerfile
 ##########
 @@ -0,0 +1,34 @@
+FROM centos:7
+MAINTAINER Apache BookKeeper <[email protected]>
+
+ARG BK_VERSION=4.4.0
+ARG DISTRO_NAME=bookkeeper-server-${BK_VERSION}-bin
+ARG ZK_VERSION=3.5.2-alpha
+
+# Download Apache Bookkeeper and zookeeper, untar and clean up
+RUN set -x \
+    && yum install -y java-1.8.0-openjdk-headless wget bash python md5sum \
+    && mkdir -pv /opt \
+    && cd /opt \
+    && wget -q 
"https://archive.apache.org/dist/bookkeeper/bookkeeper-${BK_VERSION}/${DISTRO_NAME}.tar.gz";
 \
+    && tar -xzf "$DISTRO_NAME.tar.gz" \
+    && mv bookkeeper-server-${BK_VERSION}/ /opt/bookkeeper/ \
+    && wget -q 
http://www.apache.org/dist/zookeeper/zookeeper-${ZK_VERSION}/zookeeper-${ZK_VERSION}.tar.gz
 \
+    && tar -xzf  zookeeper-${ZK_VERSION}.tar.gz \
+    && mv zookeeper-${ZK_VERSION}/ /opt/zk/ \
+    && rm -rf "$DISTRO_NAME.tar.gz" "zookeeper-${ZK_VERSION}.tar.gz" \
+    && yum remove -y wget \
+    && yum clean all
+
+ENV BOOKIE_PORT 3181
 
 Review comment:
   DCOS package is using this port
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to