Skip to content

Commit

Permalink
Adding IBM semeru 11 module (#409) (#411)
Browse files Browse the repository at this point in the history
* Adding semeru jdk 11 module

* Update jvm-options

Remove the blank first line.

Co-authored-by: Lei Zhang <lzhan@redhat.com>

Co-authored-by: Lei Zhang <lzhan@redhat.com>
  • Loading branch information
levivic and levivic authored Oct 12, 2021
1 parent 0681213 commit dcbcf4d
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
# ==============================================================================
# JDK specific customizations
#
# ==============================================================================

function jvm_specific_diagnostics() {
echo ""
}
26 changes: 26 additions & 0 deletions jboss/container/openjdk/jdk/semeru-11-open/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
# Configure module
set -e

SCRIPT_DIR=$(dirname $0)
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts

chown -R jboss: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

alternatives --set java /usr/lib/jvm/ibm-semeru-open-11-jdk/bin/java
alternatives --set javac /usr/lib/jvm/ibm-semeru-open-11-jdk/bin/javac

# Update securerandom.source for quicker starts
JAVA_SECURITY_FILE=/usr/lib/jvm/ibm-semeru-open-11-jdk/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
32 changes: 32 additions & 0 deletions jboss/container/openjdk/jdk/semeru-11-open/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
schema_version: 1

name: "jboss.container.openjdk.jdk"
description: "Installs the JDK for OpenJ9 11."
version: "semeru-11-open"

labels:
- name: "org.jboss.product"
value: "openjdk"
- name: "org.jboss.product.version"
value: "11"
- name: "org.jboss.product.openjdk.version"
value: "11"

envs:
- name: "JAVA_HOME"
value: "/usr/lib/jvm/ibm-semeru-open-11-jdk"
- name: "JAVA_VENDOR"
value: "IBM"
- name: "JAVA_VERSION"
value: "11"

packages:
install:
- ibm-semeru-open-11-jdk

modules:
install:
- name: jboss.container.user

execute:
- script: configure.sh

0 comments on commit dcbcf4d

Please sign in to comment.