-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from jmtd/ubi8-jdk21
[OPENJDK-2411] JDK21 images for UBI8
- Loading branch information
Showing
56 changed files
with
436 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: UBI8 OpenJDK 21 Runtime S2I Image CI | ||
on: [push, pull_request] | ||
env: | ||
LANG: en_US.UTF-8 | ||
IMAGE: ubi8-openjdk-21-runtime | ||
jobs: | ||
call-openjdkci: | ||
uses: ./.github/workflows/image-workflow-template.yml | ||
with: | ||
image: ubi8-openjdk-21-runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: UBI8 OpenJDK 21 S2I Image CI | ||
on: [push, pull_request] | ||
env: | ||
LANG: en_US.UTF-8 | ||
IMAGE: ubi8-openjdk-21 | ||
jobs: | ||
call-openjdkci: | ||
uses: ./.github/workflows/image-workflow-template.yml | ||
with: | ||
image: ubi8-openjdk-21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
modules/jdk/21/artifacts/opt/jboss/container/openjdk/jdk/jvm-options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
#!/bin/sh | ||
# ============================================================================== | ||
# JDK specific customizations | ||
# | ||
# ============================================================================== | ||
|
||
function jvm_specific_diagnostics() { | ||
echo "-Xlog:gc::utctime -XX:NativeMemoryTracking=summary" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jdk/* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
|
||
# Set this JDK as the alternative in use | ||
_arch="$(uname -i)" | ||
alternatives --set java java-21-openjdk.${_arch} | ||
alternatives --set javac java-21-openjdk.${_arch} | ||
alternatives --set java_sdk_openjdk java-21-openjdk.${_arch} | ||
alternatives --set jre_openjdk java-21-openjdk.${_arch} | ||
|
||
# Update securerandom.source for quicker starts (must be done after removing jdk 8, or it will hit the wrong files) | ||
JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security | ||
SECURERANDOM=securerandom.source | ||
if grep -q "^$SECURERANDOM=.*" $JAVA_SECURITY_FILE; then | ||
sed -i "s|^$SECURERANDOM=.*|$SECURERANDOM=file:/dev/urandom|" $JAVA_SECURITY_FILE | ||
else | ||
echo $SECURERANDOM=file:/dev/urandom >> $JAVA_SECURITY_FILE | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
schema_version: 1 | ||
|
||
name: "jboss.container.openjdk.jdk" | ||
description: "Installs the JDK for OpenJDK 21." | ||
version: &jdkver "21" | ||
|
||
labels: | ||
- name: "org.jboss.product" | ||
value: "openjdk" | ||
- name: "org.jboss.product.version" | ||
value: *jdkver | ||
- name: "org.jboss.product.openjdk.version" | ||
value: *jdkver | ||
|
||
envs: | ||
- name: "JAVA_HOME" | ||
value: "/usr/lib/jvm/java-21" | ||
- name: "JAVA_VENDOR" | ||
value: "openjdk" | ||
- name: "JAVA_VERSION" | ||
value: *jdkver | ||
- name: JBOSS_CONTAINER_OPENJDK_JDK_MODULE | ||
value: /opt/jboss/container/openjdk/jdk | ||
|
||
packages: | ||
install: | ||
- java-21-openjdk-devel | ||
|
||
modules: | ||
install: | ||
- name: jboss.container.user | ||
|
||
execute: | ||
- script: configure.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
modules/jre/21/artifacts/opt/jboss/container/openjdk/jre/jvm-options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
#!/bin/sh | ||
# ============================================================================== | ||
# JDK specific customizations | ||
# | ||
# ============================================================================== | ||
|
||
function jvm_specific_diagnostics() { | ||
echo "-Xlog:gc::utctime -XX:NativeMemoryTracking=summary" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
# Configure module | ||
set -e | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
echo $SCRIPT_DIR | ||
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts | ||
echo $ARTIFACTS_DIR | ||
|
||
chown -R $USER:root $SCRIPT_DIR | ||
chmod -R ug+rwX $SCRIPT_DIR | ||
chmod ug+x ${ARTIFACTS_DIR}/opt/jboss/container/openjdk/jre/* | ||
|
||
pushd ${ARTIFACTS_DIR} | ||
cp -pr * / | ||
popd | ||
|
||
# Set this JDK as the alternative in use | ||
_arch="$(uname -i)" | ||
alternatives --set java java-21-openjdk.${_arch} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
schema_version: 1 | ||
|
||
name: "jboss.container.openjdk.jre" | ||
description: "Installs only the JRE headless for OpenJDK 21." | ||
version: &jdkver "21" | ||
|
||
labels: | ||
- name: "org.jboss.product" | ||
value: "openjdk" | ||
- name: "org.jboss.product.version" | ||
value: *jdkver | ||
- name: "org.jboss.product.openjdk.version" | ||
value: *jdkver | ||
|
||
envs: | ||
- name: "JAVA_HOME" | ||
value: "/usr/lib/jvm/jre" | ||
- name: "JAVA_VENDOR" | ||
value: "openjdk" | ||
- name: "JAVA_VERSION" | ||
value: *jdkver | ||
- name: JBOSS_CONTAINER_OPENJDK_JRE_MODULE | ||
value: /opt/jboss/container/openjdk/jre | ||
|
||
packages: | ||
install: | ||
- java-21-openjdk-headless | ||
|
||
modules: | ||
install: | ||
- name: jboss.container.user | ||
|
||
execute: | ||
- script: configure.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,3 +119,7 @@ envs: | |
run: | ||
cmd: | ||
- "/usr/local/s2i/run" | ||
|
||
modules: | ||
install: | ||
- name: jboss.container.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.