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

(cherry picked from commit 51e882d5c9)
This commit is contained in:
Andrew Wang 2017-11-07 16:38:53 -08:00
parent 4e7b5824b4
commit 47f2db2c7d
1 changed files with 2 additions and 2 deletions

View File

@ -489,9 +489,9 @@ function dockermode
echo "RUN mkdir -p /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
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}"
printf "\n\n"
) | docker build -t "${imgname}" -