Skip to content

Commit 4dd243a

Browse files
committed
Merge remote-tracking branch 'upstream2/jlink-dev' into 3646
2 parents ccfa477 + 643a79c commit 4dd243a

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/ubi9-openjdk-21.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: UBI9 OpenJDK 21 S2I Image CI
22
on: [push, pull_request]
33
env:
44
LANG: en_US.UTF-8
5-
IMAGE: openjdk-21-jlink-rhel9
5+
IMAGE: ubi9-openjdk-21
66
jobs:
77
call-openjdkci:
88
uses: ./.github/workflows/image-workflow-template.yml
99
with:
10-
image: openjdk-21-jlink-rhel9
10+
image: ubi9-openjdk-21
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
@ubi9/openjdk-17
21
@openjdk-tech-preview/openjdk-21-jlink-rhel9
32
Feature: Openshift OpenJDK S2I tests (jlink specific)
43

54
Scenario: tech preview warning is printed (OPENJDK-3038)
6-
Given failing s2i build https://github.com/jboss-container-images/openjdk-test-applications from spring-boot-sample-simple/target using master
5+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from spring-boot-sample-simple/target using master
76
| variable | value |
87
| S2I_ENABLE_JLINK | true |
98
Then s2i build log should contain Jlink integration is a Tech Preview feature
109

1110
Scenario: Ensure S2I_ENABLE_JLINK is not set to true
12-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
13-
Then container log should not contain S2I_ENABLE_JLINK=true
14-
And run bash -c "test ! -d /tmp/jre && echo PASS" in container and immediately check its output for PASS
11+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from spring-boot-sample-simple/target using master
12+
Then s2i build log should not contain Jlink integration is a Tech Preview feature
13+
And file /tmp/jre should not exist
1514

1615
Scenario: Check that /tmp/jre/bin/java and /tmp/jre/lib/modules exist post s2i build if jlink is enabled.
17-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
16+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
1817
| variable | value |
1918
| S2I_ENABLE_JLINK | true |
20-
Then container log should contain S2I_ENABLE_JLINK=true
21-
and run bash -c "test -d /tmp/jre/bin/java && test -d /tmp/jre/lib/modules && echo PASS" in container and immediately check its output for PASS
19+
Then file /tmp/jre/bin/java should exist and be a file
20+
And file /tmp/jre/lib/modules should exist and be a file

templates/jlink/jlinked-app.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ objects:
7171
FROM -
7272
RUN if [ ! -f "/opt/jboss/container/java/jlink/preflight.sh" ]; then echo "jlink scripts doesn't exist" 2>&1; exit 1; fi
7373
USER 0
74-
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-${JDK_VERSION}-openjdk-jmods
7574
RUN mkdir -p /mnt/jrootfs
7675
RUN microdnf install --installroot /mnt/jrootfs --releasever 9 --setopt install_weak_deps=0 --nodocs -y \
7776
--config=/etc/dnf/dnf.conf \

0 commit comments

Comments
 (0)