This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 1561414  Fixing docker build scripts by providing JDK_VERSION as 
parameter (#7095)
1561414 is described below

commit 156141461c8cabb0dfdf212935de29fe97853ee6
Author: Xiang Fu <xiangfu.1...@gmail.com>
AuthorDate: Sun Jun 27 17:38:43 2021 -0700

    Fixing docker build scripts by providing JDK_VERSION as parameter (#7095)
---
 docker/images/pinot/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docker/images/pinot/Dockerfile b/docker/images/pinot/Dockerfile
index b1f2710..4216a23 100644
--- a/docker/images/pinot/Dockerfile
+++ b/docker/images/pinot/Dockerfile
@@ -23,6 +23,7 @@ LABEL MAINTAINER=d...@pinot.apache.org
 
 ARG PINOT_BRANCH=master
 ARG KAFKA_VERSION=2.0
+ARG JDK_VERSION=11
 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} ] with Kafka version [ ${KAFKA_VERSION} ]"
 ENV PINOT_HOME=/opt/pinot
@@ -53,7 +54,7 @@ RUN  wget 
http://archive.apache.org/dist/thrift/0.12.0/thrift-0.12.0.tar.gz -O /
 RUN git clone ${PINOT_GIT_URL} ${PINOT_BUILD_DIR} && \
     cd ${PINOT_BUILD_DIR} && \
     git checkout ${PINOT_BRANCH} && \
-    mvn install package -DskipTests -Pbin-dist -Pbuild-shaded-jar 
-Dkafka.version=${KAFKA_VERSION} -Djdk.version=${JAVA_VERSION} && \
+    mvn install package -DskipTests -Pbin-dist -Pbuild-shaded-jar 
-Dkafka.version=${KAFKA_VERSION} -Djdk.version=${JDK_VERSION} && \
     mkdir -p ${PINOT_HOME}/configs && \
     mkdir -p ${PINOT_HOME}/data && \
     cp -r pinot-distribution/target/apache-pinot-*-bin/apache-pinot-*-bin/* 
${PINOT_HOME}/. && \

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

Reply via email to