Skip to content

Commit 21bad64

Browse files
drichtarikpskopek
authored andcommitted
CIAM-2174 Merge container builds to one multiarch build and use OpenJDK for all architectures
1 parent 9bc53b0 commit 21bad64

File tree

7 files changed

+11
-62
lines changed

7 files changed

+11
-62
lines changed

image.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ modules:
137137
# See eg. https://access.redhat.com/solutions/3402171 for details how to use
138138
- name: sso-cli-extensions
139139

140-
# Ensure RPMs belonging to counterpart JVM are removed
141-
- name: sso-rm-openjdk
142-
version: *jdk_version
143-
144140
# Various SSO image pre-launch checks to prevent regressions
145141
- name: sso-pre-launch-checks
146142

modules/sso/sso-jdk/11/configure.sh

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,15 @@ pushd ${ARTIFACTS_DIR}
1717
cp -pr * /
1818
popd
1919

20-
# Set this JDK as the alternative in use
21-
if [[ ($(uname -i) = ppc64le) || ($(uname -i) = s390x) ]]
22-
then
23-
alternatives --set java /usr/lib/jvm/ibm-semeru-open-11-jdk/bin/java
24-
alternatives --set javac /usr/lib/jvm/ibm-semeru-open-11-jdk/bin/javac
25-
JAVA_SECURITY_FILE=/usr/lib/jvm/ibm-semeru-open-11-jdk/conf/security/java.security
26-
JAVA_HOME=/usr/lib/jvm/ibm-semeru-open-11-jdk/
27-
else
28-
_arch="$(uname -i)"
29-
alternatives --set java java-11-openjdk.${_arch}
30-
alternatives --set javac java-11-openjdk.${_arch}
31-
alternatives --set java_sdk_openjdk java-11-openjdk.${_arch}
32-
alternatives --set jre_openjdk java-11-openjdk.${_arch}
33-
JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security
34-
JAVA_HOME=/usr/lib/jvm/java-11/
35-
fi
20+
_arch="$(uname -i)"
21+
alternatives --set java java-11-openjdk.${_arch}
22+
alternatives --set javac java-11-openjdk.${_arch}
23+
alternatives --set java_sdk_openjdk java-11-openjdk.${_arch}
24+
alternatives --set jre_openjdk java-11-openjdk.${_arch}
3625

26+
# Update securerandom.source for quicker starts (must be done after removing jdk 8, or it will hit the wrong files)
27+
JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security
28+
JAVA_HOME=/usr/lib/jvm/java-11/
3729
# Update securerandom.source for quicker starts (must be done after removing jdk 11, or it will hit the wrong files)
3830
SECURERANDOM=securerandom.source
3931
if grep -q "^$SECURERANDOM=.*" $JAVA_SECURITY_FILE; then

modules/sso/sso-jdk/11/module.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ envs:
1919

2020
packages:
2121
install:
22-
- "`[[ ($(uname -i) = ppc64le) || ($(uname -i) = s390x) ]] && echo ibm-semeru-open-11-jdk || echo java-11-openjdk-devel`"
22+
- java-11-openjdk-devel
2323
- unzip
2424

2525
execute:

modules/sso/sso-rm-openjdk/11/configure.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

modules/sso/sso-rm-openjdk/11/module.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

overrides/openj9.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ schema_version: 1
33
name: "rh-sso-7/sso75-openj9-openshift-rhel8"
44
description: "Red Hat Single Sign-On 7.5 on OpenJ9 OpenShift container image, based on the Red Hat Universal Base Image 8 Minimal container image"
55

6-
envs:
7-
- name: "JAVA_SECURITY_FILE"
8-
value: "/usr/lib/jvm/ibm-semeru-open-11-jdk/conf/security/java.security"
9-
- name: "JAVA_HOME"
10-
value: "/usr/lib/jvm/ibm-semeru-open-11-jdk/"
11-
- name: "OPENJ9_JAVA_OPTIONS"
12-
value: "-Xjit:{java/lang/invoke/AsTypeHandle.invokeExact_thunkArchetype*}(dontInline={java/lang/invoke/VirtualHandle.invokeExact_thunkArchetype*})"
13-
146
labels:
157
- name: "com.redhat.component"
168
value: "redhat-sso-7-sso75-openj9-openshift-rhel8-container"

overrides/openjdk.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ schema_version: 1
33
name: "rh-sso-7/sso75-openshift-rhel8"
44
description: "Red Hat Single Sign-On 7.5 on OpenJDK OpenShift container image, based on the Red Hat Universal Base Image 8 Minimal container image"
55

6-
envs:
7-
- name: "JAVA_SECURITY_FILE"
8-
value: "/usr/lib/jvm/java/conf/security/java.security"
9-
- name: "JAVA_HOME"
10-
value: "/usr/lib/jvm/java-11/"
11-
126
labels:
137
- name: "com.redhat.component"
148
value: "redhat-sso-7-sso75-openshift-rhel8-container"
@@ -24,6 +18,8 @@ osbs:
2418
platforms:
2519
only:
2620
- x86_64
21+
- s390x
22+
- ppc64le
2723
repository:
2824
name: containers/redhat-sso-7
2925
branch: rh-sso-7.5-rhel-8

0 commit comments

Comments
 (0)