File tree 2 files changed +8
-8
lines changed
ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/DockerStatic/Dockerfiles
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ RUN zypper ar https://download.opensuse.org/distribution/leap/15.4/repo/oss/ sle
4
4
RUN zypper --gpg-auto-import-keys refresh
5
5
RUN zypper update -y && zypper install -y wget perl openssh-server unzip zip tar gzip
6
6
7
- RUN wget 'https://api.adoptium.net/v3/binary/latest/11 /ga/linux/s390x /jdk/hotspot/normal/eclipse?project=jdk' -O /tmp/jdk11 .tar.gz
8
- RUN mkdir -p /usr/lib/jvm/jdk11 && tar -xpzf /tmp/jdk11 .tar.gz -C /usr/lib/jvm/jdk11 --strip-components=1
9
- RUN ln -s /usr/lib/jvm/jdk11 /bin/java /usr/bin/java
7
+ RUN wget 'https://api.adoptium.net/v3/binary/latest/17 /ga/linux/x64 /jdk/hotspot/normal/eclipse?project=jdk' -O /tmp/jdk17 .tar.gz
8
+ RUN mkdir -p /usr/lib/jvm/jdk17 && tar -xpzf /tmp/jdk17 .tar.gz -C /usr/lib/jvm/jdk17 --strip-components=1
9
+ RUN ln -s /usr/lib/jvm/jdk17 /bin/java /usr/bin/java
10
10
11
11
# Install ant
12
12
RUN wget -q -O /tmp/ant.zip 'https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.zip'
@@ -19,7 +19,7 @@ RUN unzip -q -d /usr/local /tmp/ant.zip
19
19
RUN tar xpfz /tmp/ant-contrib.tar.gz -C /usr/local/apache-ant-1.10.5/lib --strip-components=2 ant-contrib/lib/ant-contrib.jar
20
20
21
21
# Clear up space
22
- RUN rm /tmp/jdk11 .tar.gz /tmp/ant.zip /tmp/ant-contrib.tar.gz
22
+ RUN rm /tmp/jdk17 .tar.gz /tmp/ant.zip /tmp/ant-contrib.tar.gz
23
23
24
24
# Set up jenkins user
25
25
RUN useradd -m -d /home/jenkins jenkins
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ FROM registry.suse.com/suse/sle15
3
3
RUN zypper addrepo https://download.opensuse.org/distribution/leap/15.4/repo/oss/ "Main Repository" && zypper --gpg-auto-import-keys refresh
4
4
RUN zypper update -y && zypper install -y perl openssh-server unzip zip wget tar gzip
5
5
6
- RUN wget 'https://api.adoptium.net/v3/binary/latest/11 /ga/linux/s390x /jdk/hotspot/normal/eclipse?project=jdk' -O /tmp/jdk11 .tar.gz
7
- RUN mkdir -p /usr/lib/jvm/jdk11 && tar -xpzf /tmp/jdk11 .tar.gz -C /usr/lib/jvm/jdk11 --strip-components=1
8
- RUN ln -s /usr/lib/jvm/jdk11 /bin/java /usr/bin/java
6
+ RUN wget 'https://api.adoptium.net/v3/binary/latest/17 /ga/linux/x64 /jdk/hotspot/normal/eclipse?project=jdk' -O /tmp/jdk17 .tar.gz
7
+ RUN mkdir -p /usr/lib/jvm/jdk17 && tar -xpzf /tmp/jdk17 .tar.gz -C /usr/lib/jvm/jdk17 --strip-components=1
8
+ RUN ln -s /usr/lib/jvm/jdk17 /bin/java /usr/bin/java
9
9
10
10
# Install ant
11
11
RUN wget -q -O /tmp/ant.zip 'https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.zip'
@@ -18,7 +18,7 @@ RUN unzip -q -d /usr/local /tmp/ant.zip
18
18
RUN tar xpfz /tmp/ant-contrib.tar.gz -C /usr/local/apache-ant-1.10.5/lib --strip-components=2 ant-contrib/lib/ant-contrib.jar
19
19
20
20
# Clear up space
21
- RUN rm /tmp/jdk11 .tar.gz /tmp/ant.zip /tmp/ant-contrib.tar.gz
21
+ RUN rm /tmp/jdk17 .tar.gz /tmp/ant.zip /tmp/ant-contrib.tar.gz
22
22
23
23
# Set up jenkins user
24
24
RUN useradd -m -d /home/jenkins jenkins
You can’t perform that action at this time.
0 commit comments