File tree Expand file tree Collapse file tree 3 files changed +69
-0
lines changed
artifacts/opt/jboss/container/openjdk/jdk Expand file tree Collapse file tree 3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ #!/bin/sh
3+ # ==============================================================================
4+ # JDK specific customizations
5+ #
6+ # ==============================================================================
7+
8+ function jvm_specific_diagnostics() {
9+ echo "-Xlog:gc::utctime -XX:NativeMemoryTracking=summary"
10+ }
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Configure module
3+ set -e
4+
5+ SCRIPT_DIR=$( dirname $0 )
6+ ARTIFACTS_DIR=${SCRIPT_DIR} /artifacts
7+
8+ install -m 0644 -D {${ARTIFACTS_DIR} ,}/opt/jboss/container/openjdk/jdk/jvm-options
9+
10+ # Set this JDK as the alternative in use
11+ _arch=" $( uname -i) "
12+ alternatives --set java java-25-openjdk.${_arch}
13+ alternatives --set javac java-25-openjdk.${_arch}
14+ alternatives --set java_sdk_openjdk java-25-openjdk.${_arch}
15+ alternatives --set jre_openjdk java-25-openjdk.${_arch}
16+
17+ # Update securerandom.source for quicker starts (must be done after removing jdk 8, or it will hit the wrong files)
18+ JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security
19+ SECURERANDOM=securerandom.source
20+ if grep -q " ^$SECURERANDOM =.*" $JAVA_SECURITY_FILE ; then
21+ sed -i " s|^$SECURERANDOM =.*|$SECURERANDOM =file:/dev/urandom|" $JAVA_SECURITY_FILE
22+ else
23+ echo $SECURERANDOM =file:/dev/urandom >> $JAVA_SECURITY_FILE
24+ fi
Original file line number Diff line number Diff line change 1+ schema_version : 1
2+
3+ name : " jboss.container.openjdk.jdk"
4+ description : " Installs the JDK for OpenJDK 25."
5+ version : &jdkver "25"
6+
7+ labels :
8+ - name : " org.jboss.product"
9+ value : " openjdk"
10+ - name : " org.jboss.product.version"
11+ value : *jdkver
12+ - name : " org.jboss.product.openjdk.version"
13+ value : *jdkver
14+
15+ envs :
16+ - name : " JAVA_HOME"
17+ value : " /usr/lib/jvm/java-25"
18+ - name : " JAVA_VENDOR"
19+ value : " openjdk"
20+ - name : " JAVA_VERSION"
21+ value : *jdkver
22+ - name : JBOSS_CONTAINER_OPENJDK_JDK_MODULE
23+ value : /opt/jboss/container/openjdk/jdk
24+
25+ packages :
26+ install :
27+ - java-25-openjdk-devel
28+
29+ modules :
30+ install :
31+ - name : jboss.container.user
32+ - name : jboss.container.openjdk
33+
34+ execute :
35+ - script : configure.sh
You can’t perform that action at this time.
0 commit comments