Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update s390x Dockerfiles to use AdoptOpenJDK API v3 #9363

Merged
merged 1 commit into from Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildenv/docker/jdk11/s390x/ubuntu16/Dockerfile
@@ -1,4 +1,4 @@
# Copyright (c) 2018, 2019 IBM Corp. and others
# Copyright (c) 2018, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -87,7 +87,7 @@ RUN cd /root \

# Download and install boot JDK from AdoptOpenJDK
RUN cd /root \
&& wget -O bootjdk10.tar.gz "https://api.adoptopenjdk.net/v2/binary/releases/openjdk10?openjdk_impl=openj9&os=linux&arch=s390x&release=latest&type=jdk" \
&& wget -O bootjdk10.tar.gz https://api.adoptopenjdk.net/v3/binary/latest/10/ga/linux/s390x/jdk/openj9/normal/adoptopenjdk?project=jdk \
&& tar -xzf bootjdk10.tar.gz \
&& rm -f bootjdk10.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk10
Expand Down
12 changes: 6 additions & 6 deletions buildenv/docker/jdk14/s390x/ubuntu16/Dockerfile
@@ -1,4 +1,4 @@
# Copyright (c) 2017, 2019 IBM Corp. and others
# Copyright (c) 2017, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -87,13 +87,13 @@ RUN cd /root \

# Download and install boot JDK from AdoptOpenJDK
RUN cd /root \
&& wget -O bootjdk12.tar.gz "https://api.adoptopenjdk.net/v2/binary/releases/openjdk12?openjdk_impl=openj9&os=linux&arch=s390x&release=latest&type=jdk" \
&& tar -xzf bootjdk12.tar.gz \
&& rm -f bootjdk12.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk12
&& wget -O bootjdk13.tar.gz https://api.adoptopenjdk.net/v3/binary/latest/13/ga/linux/s390x/jdk/openj9/normal/adoptopenjdk?project=jdk \
&& tar -xzf bootjdk13.tar.gz \
&& rm -f bootjdk13.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk13

# Set environment variable JAVA_HOME, and prepend ${JAVA_HOME}/bin to PATH
ENV JAVA_HOME="/root/bootjdk12"
ENV JAVA_HOME="/root/bootjdk13"
ENV PATH="${JAVA_HOME}/bin:${PATH}"

WORKDIR /root
4 changes: 2 additions & 2 deletions buildenv/docker/jdk8/s390x/ubuntu16/Dockerfile
Expand Up @@ -82,10 +82,10 @@ RUN cd /root \

# Download and install boot JDK from AdoptOpenJDK
RUN cd /root \
&& wget -O bootjdk8.tar.gz https://api.adoptopenjdk.net/openjdk8-openj9/releases/s390x_linux/latest/binary \
&& wget -O bootjdk8.tar.gz https://api.adoptopenjdk.net/v3/binary/latest/8/ga/linux/s390x/jdk/openj9/normal/adoptopenjdk?project=jdk \
&& tar -xzf bootjdk8.tar.gz \
&& rm -f bootjdk8.tar.gz \
&& ls | grep -i jdk | xargs -I % sh -c 'mv % bootjdk8'
&& mv $(ls | grep -i jdk) bootjdk8

# Set environment variable JAVA_HOME, and prepend ${JAVA_HOME}/bin to PATH
ENV JAVA_HOME="/root/bootjdk8"
Expand Down
18 changes: 9 additions & 9 deletions buildenv/docker/jdk8/s390x/ubuntu18/Dockerfile
@@ -1,4 +1,4 @@
# Copyright (c) 2017, 2019 IBM Corp. and others
# Copyright (c) 2017, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -83,15 +83,15 @@ RUN cd /root \
&& tar -xzf freemarker.tar.gz freemarker-2.3.8/lib/freemarker.jar --strip=2 \
&& rm -f freemarker.tar.gz

# Download the boot JDK from AdoptOpenJDK.
# Download and install boot JDK from AdoptOpenJDK
RUN cd /root \
&& wget https://api.adoptopenjdk.net/openjdk8-openj9/releases/s390x_linux/latest/binary -O bootjdk8.tar.gz \
&& tar -xzf bootjdk8.tar.gz \
&& rm -f bootjdk8.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk8
&& wget -O bootjdk8.tar.gz https://api.adoptopenjdk.net/v3/binary/latest/8/ga/linux/s390x/jdk/openj9/normal/adoptopenjdk?project=jdk \
&& tar -xzf bootjdk8.tar.gz \
&& rm -f bootjdk8.tar.gz \
&& mv $(ls | grep -i jdk) bootjdk8

# Set JAVA_HOME, and prepend $JAVA_HOME/bin to PATH.
ENV JAVA_HOME=/root/bootjdk8
ENV PATH="$JAVA_HOME/bin:$PATH"
# Set environment variable JAVA_HOME, and prepend ${JAVA_HOME}/bin to PATH
ENV JAVA_HOME="/root/bootjdk8"
ENV PATH="${JAVA_HOME}/bin:${PATH}"

WORKDIR /root