You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/05/27 05:55:08 UTC

[GitHub] [incubator-pinot] fx19880617 commented on a change in pull request #4200: Adding script to build and publish docker image

fx19880617 commented on a change in pull request #4200: Adding script to build and publish docker image
URL: https://github.com/apache/incubator-pinot/pull/4200#discussion_r287653185
 
 

 ##########
 File path: docker/Dockerfile
 ##########
 @@ -0,0 +1,35 @@
+FROM openjdk:8u181-jdk-stretch
+
+LABEL MAINTAINER=fx19880617@gmail.com
+
+ARG PINOT_BRANCH=master
+ARG PINOT_GIT_URL="https://github.com/apache/incubator-pinot.git"
+RUN echo "Trying to build Pinot from [ ${PINOT_GIT_URL} ] on branch [ ${PINOT_BRANCH} ]"
+ENV PINOT_HOME=/opt/pinot
+ENV PINOT_BUILD_DIR=/opt/pinot-build
+
+# extra dependency for running launcher
+RUN apt-get update && apt-get install -y --no-install-recommends \
+		vim wget curl git maven\
+	&& rm -rf /var/lib/apt/lists/*
+
+RUN git clone ${PINOT_GIT_URL} ${PINOT_BUILD_DIR}  && \
+    cd ${PINOT_BUILD_DIR} && \
+    git checkout ${PINOT_BRANCH} && \
+    mvn install package -DskipTests -Pbin-dist && \
+    mkdir -p ${PINOT_HOME}/configs && \
+    mkdir -p ${PINOT_HOME}/data && \
+    cp -r pinot-distribution/target/apache-pinot-*-bin/apache-pinot-*-bin/* ${PINOT_HOME}/. && \
+    chmod +x ${PINOT_HOME}/bin/*.sh && \
+    mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false --fail-at-end && \
+    rm -rf ${PINOT_BUILD_DIR}
+
+VOLUME ["${PINOT_HOME}/configs", "${PINOT_HOME}/data"]
+
+EXPOSE 9000 8099 8098 8097 8096 9514
 
 Review comment:
   Those are default ports for controller/broker/server/admin.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org