HADOOP-15018. Update JAVA_HOME in create-release for Xenial Dockerfile.
(cherry picked from commit 51e882d5c9
)
This commit is contained in:
parent
4e7b5824b4
commit
47f2db2c7d
|
@ -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}" -
|
||||||
|
|
Loading…
Reference in New Issue