HADOOP-15018. Update JAVA_HOME in create-release for Xenial Dockerfile.

This commit is contained in:
Andrew Wang 2017-11-07 16:38:53 -08:00
parent 8db9d61ac2
commit 51e882d5c9

View File

@ -489,9 +489,9 @@ function dockermode
echo "RUN mkdir -p /maven" echo "RUN mkdir -p /maven"
echo "RUN chown -R ${user_name} /maven" echo "RUN chown -R ${user_name} /maven"
# we always force build with the Oracle JDK # we always force build with the OpenJDK JDK
# but with the correct version # but with the correct version
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-oracle" echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-amd64"
echo "USER ${user_name}" echo "USER ${user_name}"
printf "\n\n" printf "\n\n"
) | docker build -t "${imgname}" - ) | docker build -t "${imgname}" -