Skip to content

Commit a92ea44

Browse files
authored
Merge pull request #47 from rdnovell/CLOUD-4266
Add output of cekit run for Konflux
2 parents 0a510cc + d722fd9 commit a92ea44

File tree

259 files changed

+11637
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+11637
-0
lines changed

container-images/README.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Those files are generated and must not be modified manually.
2+
3+
If you need to manipulate this files please do a PR and the github action will run and update the required files.
4+
5+
First sync was done from https://github.com/rdnovell/jboss-eap-8-openshift-image/actions/runs/13011327110, the action run in a different branch CLOUD-4265 and the output was copied (test dirs was removed).

container-images/jdk17/builder-image/Dockerfile

Lines changed: 349 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
# Configure module
3+
set -e
4+
5+
ln -s "$JBOSS_HOME" /opt/eap
6+
7+
# Handle UBI9 specifics, otherwise cloud feature-pack for 8.0 would break
8+
# Only create the link for UBI9 image.
9+
if [ -n "${JBOSS_CONTAINER_JAVA_PROXY_MODULE}" ]; then
10+
if [ ! -f /opt/run-java/proxy-options ]; then
11+
mkdir -p /opt/run-java/
12+
ln -s "${JBOSS_CONTAINER_JAVA_PROXY_MODULE}/proxy-options" /opt/run-java/proxy-options
13+
fi
14+
fi
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
args: []
2+
artifacts: []
3+
description: Finalize installation. Create symlink from JBOSS_HOME to /opt/eap
4+
envs:
5+
- name: JBOSS_HOME
6+
value: /opt/server
7+
execute:
8+
- directory: jboss.container.eap.cleanup
9+
module_name: jboss.container.eap.cleanup
10+
name: jboss.container.eap.cleanup/configure.sh
11+
script: configure.sh
12+
user: 185
13+
labels: []
14+
modules:
15+
install: []
16+
repositories: []
17+
name: jboss.container.eap.cleanup
18+
osbs:
19+
configuration: {}
20+
repository: {}
21+
packages:
22+
repositories: []
23+
ports: []
24+
schema_version: 1
25+
version: '1.0'
26+
volumes: []
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
. "${JBOSS_CONTAINER_WILDFLY_S2I_MODULE}/assemble.sh"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
cat <<EOF
4+
This is an S2I EAP 8 ubi9 based image responsible for building, installing and running a EAP 8 server and application.
5+
6+
EOF
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
# Configure module
3+
set -e
4+
5+
SCRIPT_DIR=$(dirname $0)
6+
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts
7+
8+
chown -R jboss:root $SCRIPT_DIR
9+
chmod -R ug+rwX $SCRIPT_DIR
10+
chmod ug+x ${ARTIFACTS_DIR}/usr/local/s2i/*
11+
12+
# Legacy location required by s2i tooling.
13+
ln -s /usr/local/s2i /usr/libexec/s2i
14+
15+
pushd ${ARTIFACTS_DIR}
16+
cp -pr * /
17+
popd
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
args: []
2+
artifacts: []
3+
description: Customization of common Maven S2I for EAP S2I images.
4+
envs: []
5+
execute:
6+
- directory: jboss.container.eap.s2i-eap.bash
7+
module_name: jboss.container.eap.s2i-eap.bash
8+
name: jboss.container.eap.s2i-eap.bash/configure.sh
9+
script: configure.sh
10+
labels: []
11+
modules:
12+
install:
13+
- name: jboss.container.wildfly.s2i.bash
14+
version: '2.0'
15+
repositories: []
16+
name: jboss.container.eap.s2i-eap.bash
17+
osbs:
18+
configuration: {}
19+
repository: {}
20+
packages:
21+
repositories: []
22+
ports: []
23+
schema_version: 1
24+
version: '1.0'
25+
volumes: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# Check for debug options and echo them if enabled. Meant to be included by
4+
# a run script.
5+
6+
debug_options() {
7+
if [ "x${JAVA_DEBUG}" != "x" ]; then
8+
local debug_port=${JAVA_DEBUG_PORT:-5005}
9+
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${debug_port}"
10+
fi
11+
}
12+
13+
## Echo options, trimming trailing and multiple spaces
14+
echo "$(debug_options)" | awk '$1=$1'
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#!/bin/sh
2+
# =================================================================
3+
# Detect whether running in a container and set appropriate options
4+
# for limiting Java VM resources
5+
#
6+
# Usage: JAVA_OPTS="$(java-default-options.sh)"
7+
8+
# stubs for jvm specific overrides
9+
jvm_specific_options() {
10+
:
11+
}
12+
13+
jvm_specific_diagnostics() {
14+
:
15+
}
16+
17+
# Include overridden jvm_specific_*() functions
18+
if [ -f "${JBOSS_CONTAINER_OPENJDK_JDK_MODULE}/jvm-options" ]; then
19+
source "${JBOSS_CONTAINER_OPENJDK_JDK_MODULE}/jvm-options"
20+
fi
21+
22+
# Check for memory options and calculate a sane default if not given
23+
max_memory() {
24+
case "$JAVA_MAX_MEM_RATIO" in
25+
"0") # explicitly disabled
26+
return
27+
;;
28+
"")
29+
maxmem="80.0"
30+
;;
31+
*)
32+
maxmem="$(printf "%.0f.0" "$JAVA_MAX_MEM_RATIO")"
33+
;;
34+
esac
35+
echo "-XX:MaxRAMPercentage=$maxmem"
36+
}
37+
38+
# Switch on diagnostics except when switched off
39+
diagnostics() {
40+
if [ "x$JAVA_DIAGNOSTICS" != "x" ]; then
41+
echo "$(jvm_specific_diagnostics)"
42+
fi
43+
}
44+
45+
gc_config() {
46+
local minHeapFreeRatio=${GC_MIN_HEAP_FREE_RATIO:-10}
47+
local maxHeapFreeRatio=${GC_MAX_HEAP_FREE_RATIO:-20}
48+
local timeRatio=${GC_TIME_RATIO:-4}
49+
local adaptiveSizePolicyWeight=${GC_ADAPTIVE_SIZE_POLICY_WEIGHT:-90}
50+
local gcOptions="${GC_CONTAINER_OPTIONS:--XX:+UseParallelGC}"
51+
52+
# for compat reasons we don't set a default value for metaspaceSize
53+
local metaspaceSize
54+
# We also don't set a default value for maxMetaspaceSize
55+
local maxMetaspaceSize=${GC_MAX_METASPACE_SIZE}
56+
57+
if [ -n "${GC_METASPACE_SIZE}" ]; then
58+
metaspaceSize=${GC_METASPACE_SIZE}
59+
if [ -n "${maxMetaspaceSize}" ]; then
60+
# clamp the max size of metaspaceSize to be <= maxMetaspaceSize
61+
if [ "${metaspaceSize}" -gt "${maxMetaspaceSize}" ]; then
62+
metaspaceSize=${maxMetaspaceSize}
63+
fi
64+
fi
65+
fi
66+
67+
local allOptions="$(jvm_specific_options) "
68+
allOptions+="${gcOptions} "
69+
allOptions+="-XX:MinHeapFreeRatio=${minHeapFreeRatio} "
70+
allOptions+="-XX:MaxHeapFreeRatio=${maxHeapFreeRatio} "
71+
allOptions+="-XX:GCTimeRatio=${timeRatio} "
72+
allOptions+="-XX:AdaptiveSizePolicyWeight=${adaptiveSizePolicyWeight} "
73+
# if no value was specified for maxMetaSpaceSize we should skip passing it entirely
74+
if [ -n "${maxMetaspaceSize}" ]; then
75+
allOptions+="-XX:MaxMetaspaceSize=${maxMetaspaceSize}m "
76+
fi
77+
if [ -n "${metaspaceSize}" ]; then
78+
allOptions+="-XX:MetaspaceSize=${metaspaceSize}m "
79+
fi
80+
81+
echo "${allOptions}"
82+
}
83+
84+
error_handling() {
85+
echo "-XX:+ExitOnOutOfMemoryError"
86+
}
87+
88+
## Echo options, trimming trailing and multiple spaces
89+
echo "$(max_memory) $(gc_config) $(diagnostics) $(error_handling)" | awk '$1=$1'

0 commit comments

Comments
 (0)