Skip to content

Commit e56cf94

Browse files
committed
Update 22.0.0.8
1 parent d3a9603 commit e56cf94

7 files changed

Lines changed: 20 additions & 11 deletions

File tree

releases/22.0.0.8/full/Dockerfile.ubi.ibmjava8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
108108

109109
# These settings are needed so that we can run as a different user than 1001 after server warmup
110110
ENV RANDFILE=/tmp/.rnd \
111-
IBM_JAVA_OPTIONS="-Xshareclasses:name=liberty,readonly,nonfatal,cacheDir=$WLP_OUTPUT_DIR/.classCache/ -Dosgi.checkConfiguration=false ${IBM_JAVA_OPTIONS}"
111+
IBM_JAVA_OPTIONS="-Xshareclasses:name=liberty,readonly,nonfatal,cacheDir=/output/.classCache/ -Dosgi.checkConfiguration=false ${IBM_JAVA_OPTIONS}"
112112

113113
USER 1001
114114

releases/22.0.0.8/full/helpers/build/populate_scc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [[ -d "/opt/java/.scc" ]] && [[ `stat -L -c "%a" "/opt/java/.scc" | cut -c 1,
1515
then
1616
SCC="-Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc"
1717
else
18-
SCC="-Xshareclasses:name=liberty,cacheDir=${WLP_OUTPUT_DIR}/.classCache"
18+
SCC="-Xshareclasses:name=liberty,cacheDir=/output/.classCache"
1919
fi
2020

2121
# For JDK8, as of OpenJ9 0.20.0 the criteria for determining the max heap size (-Xmx) has changed

releases/22.0.0.8/full/helpers/runtime/configure-liberty.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ if [ "$SERVER_NAME" != "defaultServer" ] && [ -d "/opt/ol/wlp/usr/servers/defaul
2323
rm /opt/ol/links/output
2424
rm /opt/ol/links/config
2525

26-
# Delete old output folder
27-
rm -rf /opt/ol/wlp/output/defaultServer
28-
2926
# Add new output folder symlink and resolve group write permissions
3027
mkdir -p $WLP_OUTPUT_DIR/$SERVER_NAME
3128
ln -s $WLP_OUTPUT_DIR/$SERVER_NAME /opt/ol/links/output
@@ -36,6 +33,12 @@ if [ "$SERVER_NAME" != "defaultServer" ] && [ -d "/opt/ol/wlp/usr/servers/defaul
3633
chmod -R g+w $WLP_OUTPUT_DIR/$SERVER_NAME/workarea
3734
chmod -R g+w,o-rwx $WLP_OUTPUT_DIR/$SERVER_NAME/resources
3835
chmod -R g+w,o-rwx $WLP_OUTPUT_DIR/$SERVER_NAME/logs
36+
37+
# Hand over the SCC
38+
if [ "$OPENJ9_SCC" = "true" ] && [ -d "/opt/ol/wlp/output/defaultServer/.classCache" ]; then
39+
mv /opt/ol/wlp/output/defaultServer/.classCache $WLP_OUTPUT_DIR/$SERVER_NAME/
40+
fi
41+
rm -rf /opt/ol/wlp/output/defaultServer
3942

4043
# Add new server symlink and populate folder
4144
ln -s /opt/ol/wlp/usr/servers/$SERVER_NAME /opt/ol/links/config

releases/22.0.0.8/kernel-slim/Dockerfile.ubi.ibmjava8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
107107

108108
# These settings are needed so that we can run as a different user than 1001 after server warmup
109109
ENV RANDFILE=/tmp/.rnd \
110-
IBM_JAVA_OPTIONS="-Xshareclasses:name=liberty,readonly,nonfatal,cacheDir=$WLP_OUTPUT_DIR/.classCache/ -Dosgi.checkConfiguration=false ${IBM_JAVA_OPTIONS}"
110+
IBM_JAVA_OPTIONS="-Xshareclasses:name=liberty,readonly,nonfatal,cacheDir=/output/.classCache/ -Dosgi.checkConfiguration=false ${IBM_JAVA_OPTIONS}"
111111

112112
USER 1001
113113

releases/22.0.0.8/kernel-slim/helpers/build/features.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ set -Eeox pipefail
88

99
# Resolve liberty server symlinks and creation for server name changes
1010
/opt/ol/helpers/runtime/configure-liberty.sh
11+
if [ $? -ne 0 ]; then
12+
exit
13+
fi
1114

1215
##Define variables for XML snippets source and target paths
1316
SNIPPETS_SOURCE=/opt/ol/helpers/build/configuration_snippets

releases/22.0.0.8/kernel-slim/helpers/build/populate_scc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [[ -d "/opt/java/.scc" ]] && [[ `stat -L -c "%a" "/opt/java/.scc" | cut -c 1,
1515
then
1616
SCC="-Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc"
1717
else
18-
SCC="-Xshareclasses:name=liberty,cacheDir=${WLP_OUTPUT_DIR}/.classCache"
18+
SCC="-Xshareclasses:name=liberty,cacheDir=/output/.classCache"
1919
fi
2020

2121
# For JDK8, as of OpenJ9 0.20.0 the criteria for determining the max heap size (-Xmx) has changed

releases/22.0.0.8/kernel-slim/helpers/runtime/configure-liberty.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# If the Liberty server name is not defaultServer and defaultServer still exists migrate the contents
44
if [ "$SERVER_NAME" != "defaultServer" ] && [ -d "/opt/ol/wlp/usr/servers/defaultServer" ]; then
55
# Create new Liberty server
6-
/opt/ol/wlp/bin/server create --template=javaee8 >/tmp/serverOutput
6+
/opt/ol/wlp/bin/server create >/tmp/serverOutput
77
rc=$?
88
if [ $rc -ne 0 ]; then
99
cat /tmp/serverOutput
@@ -23,9 +23,6 @@ if [ "$SERVER_NAME" != "defaultServer" ] && [ -d "/opt/ol/wlp/usr/servers/defaul
2323
rm /opt/ol/links/output
2424
rm /opt/ol/links/config
2525

26-
# Delete old output folder
27-
rm -rf /opt/ol/wlp/output/defaultServer
28-
2926
# Add new output folder symlink and resolve group write permissions
3027
mkdir -p $WLP_OUTPUT_DIR/$SERVER_NAME
3128
ln -s $WLP_OUTPUT_DIR/$SERVER_NAME /opt/ol/links/output
@@ -36,6 +33,12 @@ if [ "$SERVER_NAME" != "defaultServer" ] && [ -d "/opt/ol/wlp/usr/servers/defaul
3633
chmod -R g+w $WLP_OUTPUT_DIR/$SERVER_NAME/workarea
3734
chmod -R g+w,o-rwx $WLP_OUTPUT_DIR/$SERVER_NAME/resources
3835
chmod -R g+w,o-rwx $WLP_OUTPUT_DIR/$SERVER_NAME/logs
36+
37+
# Hand over the SCC
38+
if [ "$OPENJ9_SCC" = "true" ] && [ -d "/opt/ol/wlp/output/defaultServer/.classCache" ]; then
39+
mv /opt/ol/wlp/output/defaultServer/.classCache $WLP_OUTPUT_DIR/$SERVER_NAME/
40+
fi
41+
rm -rf /opt/ol/wlp/output/defaultServer
3942

4043
# Add new server symlink and populate folder
4144
ln -s /opt/ol/wlp/usr/servers/$SERVER_NAME /opt/ol/links/config

0 commit comments

Comments
 (0)