Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ before_install:
env:
- RELEASE=../ga/23.0.0.9
- RELEASE=../ga/23.0.0.12
- RELEASE=../ga/24.0.0.1
- RELEASE=../ga/24.0.0.2
- RELEASE=../ga/latest

script:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ This feature can be controlled via the following variables:
* `SCC_SIZE` (environment variable)
* Description: The size of the application-specific SCC layer in the image. This value is only used if `TRIM_SCC` is set to `"false"`.
* Default: `"80m"`.
* `WARM_ENDPOINT` (environment variable)
* Description: If `"true"`, curl will be used to access the WARM_ENDPOINT_URL (see below) during the population of the SCC. This will increase the amount of information in the SCC and improve first request time in subsequent starts of the image.
* Default: `"true"`.
* `WARM_ENDPOINT_URL` (enviornment variable)
* Description: The URL to access during SCC population if WARM_ENDPOINT is true.
* Default: `"localhost:9080/"`.

## Logging

Expand Down
6 changes: 6 additions & 0 deletions ga/23.0.0.12/kernel/helpers/build/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ function main() {
if [ ! "$SCC_SIZE" = "" ]; then
cmd+=" -s $SCC_SIZE"
fi
if [ "$WARM_ENDPOINT" = "false" ]; then
cmd+=" -c"
fi
if [ ! "$WARM_ENDPOINT_URL" = "" ]; then
cmd+=" -u $WARM_ENDPOINT_URL"
fi
eval $cmd
fi
}
Expand Down
33 changes: 30 additions & 3 deletions ga/23.0.0.12/kernel/helpers/build/populate_scc.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# (C) Copyright IBM Corporation 2020.
# (C) Copyright IBM Corporation 2020, 2024
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -24,6 +24,8 @@ set -Eeox pipefail
SCC_SIZE="80m" # Default size of the SCC layer.
ITERATIONS=2 # Number of iterations to run to populate it.
TRIM_SCC=yes # Trim the SCC to eliminate any wasted space.
WARM_ENDPOINT=true
WARM_ENDPOINT_URL=localhost:9080/

# If this directory exists and has at least ug=rwx permissions, assume the base image includes an SCC called 'openj9_system_scc' and build on it.
# If not, build on our own SCC.
Expand All @@ -48,7 +50,7 @@ CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"
PRINT_LAYER_STATS="$OPENJ9_JAVA_OPTIONS,printTopLayerStats"

while getopts ":i:s:tdh" OPT
while getopts ":i:s:u:tdhwc" OPT
do
case "$OPT" in
i)
Expand All @@ -64,13 +66,24 @@ do
d)
TRIM_SCC=no
;;
w)
WARM_ENDPOINT=true
;;
c)
WARM_ENDPOINT=false
;;
u)
WARM_ENDPOINT_URL="${OPTARG}"
;;
h)
echo \
"Usage: $0 [-i iterations] [-s size] [-t] [-d]
"Usage: $0 [-i iterations] [-s size] [-t] [-d] [-w] [-u url]
-i <iterations> Number of iterations to run to populate the SCC. (Default: $ITERATIONS)
-s <size> Size of the SCC in megabytes (m suffix required). (Default: $SCC_SIZE)
-t Trim the SCC to eliminate most of the free space, if any.
-d Don't trim the SCC.
-w Use curl to warm an endpoint during SCC creation. (Default: $WARM_ENDPOINT)
-u The URL endpoint to warm during SCC creation. (Default: $WARM_ENDPOINT_URL)

Trimming enabled=$TRIM_SCC"
exit 1
Expand Down Expand Up @@ -98,7 +111,14 @@ then
echo "Calculating SCC layer upper bound, starting with initial size $SCC_SIZE."
# Populate the newly created class cache layer.
/opt/ibm/wlp/bin/server start

if [ ${WARM_ENDPOINT} == true ]
then
curl --silent --output /dev/null --show-error --fail --max-time 5 ${WARM_ENDPOINT_URL} 2>&1 || echo "WARM_ENDPOINT call failed, continuing"
fi

/opt/ibm/wlp/bin/server stop

# Find out how full it is.
FULL=`( java $PRINT_LAYER_STATS || true ) 2>&1 | awk '/^Cache is [0-9.]*% .*full/ {print substr($3, 1, length($3)-1)}'`
echo "SCC layer is $FULL% full. Destroying layer."
Expand All @@ -122,6 +142,12 @@ fi
for ((i=0; i<$ITERATIONS; i++))
do
/opt/ibm/wlp/bin/server start

if [ ${WARM_ENDPOINT} == true ]
then
curl --silent --output /dev/null --show-error --fail --max-time 5 ${WARM_ENDPOINT_URL} 2>&1 || echo "WARM_ENDPOINT call failed, continuing"
fi

/opt/ibm/wlp/bin/server stop
done

Expand All @@ -135,6 +161,7 @@ then
chmod -R g+rwx /output/resources
fi


# Tell the user how full the final layer is.
FULL=`( java $PRINT_LAYER_STATS || true ) 2>&1 | awk '/^Cache is [0-9.]*% .*full/ {print substr($3, 1, length($3)-1)}'`
echo "SCC layer is $FULL% full."
6 changes: 6 additions & 0 deletions ga/23.0.0.9/kernel/helpers/build/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ function main() {
if [ ! "$SCC_SIZE" = "" ]; then
cmd+=" -s $SCC_SIZE"
fi
if [ "$WARM_ENDPOINT" = "false" ]; then
cmd+=" -c"
fi
if [ ! "$WARM_ENDPOINT_URL" = "" ]; then
cmd+=" -u $WARM_ENDPOINT_URL"
fi
eval $cmd
fi
}
Expand Down
33 changes: 30 additions & 3 deletions ga/23.0.0.9/kernel/helpers/build/populate_scc.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# (C) Copyright IBM Corporation 2020.
# (C) Copyright IBM Corporation 2020, 2024
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -24,6 +24,8 @@ set -Eeox pipefail
SCC_SIZE="80m" # Default size of the SCC layer.
ITERATIONS=2 # Number of iterations to run to populate it.
TRIM_SCC=yes # Trim the SCC to eliminate any wasted space.
WARM_ENDPOINT=true
WARM_ENDPOINT_URL=localhost:9080/

# If this directory exists and has at least ug=rwx permissions, assume the base image includes an SCC called 'openj9_system_scc' and build on it.
# If not, build on our own SCC.
Expand All @@ -48,7 +50,7 @@ CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"
PRINT_LAYER_STATS="$OPENJ9_JAVA_OPTIONS,printTopLayerStats"

while getopts ":i:s:tdh" OPT
while getopts ":i:s:u:tdhwc" OPT
do
case "$OPT" in
i)
Expand All @@ -64,13 +66,24 @@ do
d)
TRIM_SCC=no
;;
w)
WARM_ENDPOINT=true
;;
c)
WARM_ENDPOINT=false
;;
u)
WARM_ENDPOINT_URL="${OPTARG}"
;;
h)
echo \
"Usage: $0 [-i iterations] [-s size] [-t] [-d]
"Usage: $0 [-i iterations] [-s size] [-t] [-d] [-w] [-u url]
-i <iterations> Number of iterations to run to populate the SCC. (Default: $ITERATIONS)
-s <size> Size of the SCC in megabytes (m suffix required). (Default: $SCC_SIZE)
-t Trim the SCC to eliminate most of the free space, if any.
-d Don't trim the SCC.
-w Use curl to warm an endpoint during SCC creation. (Default: $WARM_ENDPOINT)
-u The URL endpoint to warm during SCC creation. (Default: $WARM_ENDPOINT_URL)

Trimming enabled=$TRIM_SCC"
exit 1
Expand Down Expand Up @@ -98,7 +111,14 @@ then
echo "Calculating SCC layer upper bound, starting with initial size $SCC_SIZE."
# Populate the newly created class cache layer.
/opt/ibm/wlp/bin/server start

if [ ${WARM_ENDPOINT} == true ]
then
curl --silent --output /dev/null --show-error --fail --max-time 5 ${WARM_ENDPOINT_URL} 2>&1 || echo "WARM_ENDPOINT call failed, continuing"
fi

/opt/ibm/wlp/bin/server stop

# Find out how full it is.
FULL=`( java $PRINT_LAYER_STATS || true ) 2>&1 | awk '/^Cache is [0-9.]*% .*full/ {print substr($3, 1, length($3)-1)}'`
echo "SCC layer is $FULL% full. Destroying layer."
Expand All @@ -122,6 +142,12 @@ fi
for ((i=0; i<$ITERATIONS; i++))
do
/opt/ibm/wlp/bin/server start

if [ ${WARM_ENDPOINT} == true ]
then
curl --silent --output /dev/null --show-error --fail --max-time 5 ${WARM_ENDPOINT_URL} 2>&1 || echo "WARM_ENDPOINT call failed, continuing"
fi

/opt/ibm/wlp/bin/server stop
done

Expand All @@ -135,6 +161,7 @@ then
chmod -R g+rwx /output/resources
fi


# Tell the user how full the final layer is.
FULL=`( java $PRINT_LAYER_STATS || true ) 2>&1 | awk '/^Cache is [0-9.]*% .*full/ {print substr($3, 1, length($3)-1)}'`
echo "SCC layer is $FULL% full."
18 changes: 0 additions & 18 deletions ga/24.0.0.1/images.txt

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java8-ibmjava-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java8-ibmjava-ubi
FROM $PARENT_IMAGE AS installBundle

ARG VERBOSE=false
Expand All @@ -36,7 +36,7 @@ RUN set -eux; \
rm -rf /output/workarea /output/logs; \
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java8-ibmjava-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java8-ibmjava-ubi
FROM $PARENT_IMAGE
ARG VERBOSE=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java11-openj9-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java11-openj9-ubi
FROM $PARENT_IMAGE AS installBundle

ARG VERBOSE=false
Expand All @@ -36,7 +36,7 @@ RUN set -eux; \
rm -rf /output/workarea /output/logs; \
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java11-openj9-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java11-openj9-ubi
FROM $PARENT_IMAGE
ARG VERBOSE=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java17-openj9-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java17-openj9-ubi
FROM $PARENT_IMAGE AS installBundle

ARG VERBOSE=false
Expand All @@ -36,7 +36,7 @@ RUN set -eux; \
rm -rf /output/workarea /output/logs; \
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java17-openj9-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java17-openj9-ubi
FROM $PARENT_IMAGE
ARG VERBOSE=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java21-openj9-ubi9-minimal
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java21-openj9-ubi9-minimal
FROM $PARENT_IMAGE AS installBundle

ARG VERBOSE=false
Expand All @@ -36,7 +36,7 @@ RUN set -eux; \
rm -rf /output/workarea /output/logs; \
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java21-openj9-ubi9-minimal
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java21-openj9-ubi9-minimal
FROM $PARENT_IMAGE
ARG VERBOSE=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java8-openj9-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java8-openj9-ubi
FROM $PARENT_IMAGE AS installBundle

ARG VERBOSE=false
Expand All @@ -36,7 +36,7 @@ RUN set -eux; \
rm -rf /output/workarea /output/logs; \
find /opt/ibm/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw;

ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.1-kernel-java8-openj9-ubi
ARG PARENT_IMAGE=icr.io/appcafe/websphere-liberty:24.0.0.2-kernel-java8-openj9-ubi
FROM $PARENT_IMAGE
ARG VERBOSE=false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM websphere-liberty:24.0.0.1-kernel-java8-ibmjava
FROM websphere-liberty:24.0.0.2-kernel-java8-ibmjava

ARG VERBOSE=false
ARG REPOSITORIES_PROPERTIES=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM websphere-liberty:24.0.0.1-kernel-java11-openj9
FROM websphere-liberty:24.0.0.2-kernel-java11-openj9

ARG VERBOSE=false
ARG REPOSITORIES_PROPERTIES=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM websphere-liberty:24.0.0.1-kernel-java17-openj9
FROM websphere-liberty:24.0.0.2-kernel-java17-openj9

ARG VERBOSE=false
ARG REPOSITORIES_PROPERTIES=""
Expand Down
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions ga/24.0.0.2/images.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
websphere-liberty:24.0.0.2-kernel ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubuntu.ibmjava8
websphere-liberty:24.0.0.2-kernel-java11-openj9 ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubuntu.openjdk11
websphere-liberty:24.0.0.2-kernel-java17-openj9 ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubuntu.openjdk17
websphere-liberty:24.0.0.2-kernel-java8-ibmjava-ubi ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubi.ibmjava8
websphere-liberty:24.0.0.2-kernel-java8-openj9-ubi ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubi.openjdk8
websphere-liberty:24.0.0.2-kernel-java11-openj9-ubi ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubi.openjdk11
websphere-liberty:24.0.0.2-kernel-java17-openj9-ubi ../ga/24.0.0.2/kernel ../ga/24.0.0.2/kernel/Dockerfile.ubi.openjdk17
websphere-liberty:24.0.0.2-full ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubuntu.ibmjava8
websphere-liberty:24.0.0.2-full-java11-openj9 ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubuntu.openjdk11
websphere-liberty:24.0.0.2-full-java17-openj9 ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubuntu.openjdk17
websphere-liberty:24.0.0.2-full-java8-ibmjava-ubi ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubi.ibmjava8
websphere-liberty:24.0.0.2-full-java8-openj9-ubi ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubi.openjdk8
websphere-liberty:24.0.0.2-full-java11-openj9-ubi ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubi.openjdk11
websphere-liberty:24.0.0.2-full-java17-openj9-ubi ../ga/24.0.0.2/full ../ga/24.0.0.2/full/Dockerfile.ubi.openjdk17
websphere-liberty:beta ../beta
websphere-liberty:test-stock-quote test-stock-quote
websphere-liberty:test-stock-trader test-stock-trader
websphere-liberty:test-pet-clinic test-pet-clinic
Loading