File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
jlink/artifacts/opt/jboss/container/java/jlink
s2i/bash/artifacts/usr/local/s2i Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ jlink_preflight_check ()
2
+ {
3
+ # preflight check: do we have what we need?
4
+ if [ " $JAVA_VERSION " -lt 11 ]; then
5
+ echo " Jlink integration not available for JDK${JAVA_VERSION} !"
6
+ echo " Jlink integration is only supported for JDK versions 11 and newer."
7
+ fi
8
+ if [ ! -d /usr/lib/jvm/java/jmods ]; then
9
+ echo " Jlink integration requires the jmods RPM to be installed in the builder image, e.g."
10
+ echo " microdnf install -y java-${JAVA_VERSION} -openjdk-jmods"
11
+ fi
12
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ setup_java_app_and_lib
21
21
# include our jlink scripts
22
22
if [ " $S2I_ENABLE_JLINK " = " true" ]; then
23
23
24
+ source " ${JBOSS_CONTAINER_JAVA_JLINK_MODULE} /preflight.sh"
25
+ jlink_preflight_check
26
+
24
27
source " ${JBOSS_CONTAINER_JAVA_JLINK_MODULE} /mkdeps.sh"
25
28
echo " Invoking mkdeps"
26
29
generate_deps
You can’t perform that action at this time.
0 commit comments