Skip to content

Commit

Permalink
Update JDK11 x86 Ubuntu16 Dockerfile
Browse files Browse the repository at this point in the history
JDK11 x86 Ubuntu16 Dockerfile has been updated to use the latest
OpenJDK10-OpenJ9 xLinux nightly build from AdoptOpenJDK as the boot JDK.

[ci skip]

closes: #2190

Signed-off-by: Babneet Singh <[email protected]>
  • Loading branch information
babsingh committed Jun 28, 2018
1 parent ecd1ce1 commit 89828cd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions buildenv/docker/jdk11/x86_64/ubuntu16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,11 @@ RUN cd /root \
&& rm -f freemarker.tgz

# Download and install boot JDK from AdoptOpenJDK
# Currently, no JDK10 with OpenJ9 releases are available at AdoptOpenJDK.
# So, the AdoptOpenJDK API can't be used to download a boot JDK.
# A nightly JDK10 OpenJ9 build is currently used as the boot JDK.
# Once JDK10 OpenJ9 releases are available, the following link can be used
# to download the JDK10 OpenJ9 boot JDK:
# https://api.adoptopenjdk.net/openjdk10-openj9/releases/x64_linux/latest/binary
RUN cd /root \
&& wget -O bootjdk10.tar.gz https://github.com/AdoptOpenJDK/openjdk10-openj9-nightly/releases/download/jdk-10%2B46-20180509/OpenJDK10-OPENJ9_x64_Linux_20180509.tar.gz \
&& wget -O bootjdk10.tar.gz https://api.adoptopenjdk.net/openjdk10-openj9/nightly/x64_linux/latest/binary \
&& tar -xzf bootjdk10.tar.gz \
&& rm -f bootjdk10.tar.gz \
&& ls | grep -i jdk | xargs -I % sh -c 'mv % bootjdk10'
&& mv $(ls | grep -i jdk) bootjdk10

# Set environment variable JAVA_HOME, and prepend ${JAVA_HOME}/bin to PATH
ENV JAVA_HOME="/root/bootjdk10"
Expand Down

0 comments on commit 89828cd

Please sign in to comment.