Skip to content

Commit ad67c3d

Browse files
committed
Avoid using yum (which requires http:// access) in launch script tests
Fixes gh-26240
1 parent f82b336 commit ad67c3d

File tree

1 file changed

+5
-6
lines changed
  • spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/resources/conf/CentOS/7.9-e4ca2ed0

1 file changed

+5
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# CentOS 7.9 from 18/11/2020
22
FROM centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e
3-
RUN yum install -y wget && \
4-
yum install -y curl && \
5-
wget --output-document jdk.rpm \
6-
https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-linux.x86_64.rpm && \
7-
yum --nogpg localinstall -y jdk.rpm && \
8-
rm -f jdk.rpm
3+
RUN mkdir -p /opt/openjdk && \
4+
cd /opt/openjdk && \
5+
curl -L https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u202b08.tar.gz | tar zx --strip-components=1
6+
ENV JAVA_HOME /opt/openjdk
7+
ENV PATH $JAVA_HOME/bin:$PATH

0 commit comments

Comments
 (0)