Skip to content

Commit

Permalink
Define S2I_JLINK_OUTPUT_PATH for jlinked runtime destination
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Dec 6, 2023
1 parent 687e59b commit 9433d1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function generate_jre_image() {
test -f $depsfile
modules="$(cat $depsfile)"

$JAVA_HOME/bin/jlink --output "jre" \
$JAVA_HOME/bin/jlink --output "$S2I_JLINK_OUTPUT_PATH" \
--add-modules "$modules" \
--strip-debug --no-header-files --no-man-pages \
--compress=2
}
}
2 changes: 2 additions & 0 deletions modules/jlink/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ execute:
envs:
- name: JBOSS_CONTAINER_JAVA_JLINK_MODULE
value: /opt/jboss/container/java/jlink
- name: S2I_JLINK_OUTPUT_PATH
value: /tmp/jre

modules:
install:
Expand Down

0 comments on commit 9433d1a

Please sign in to comment.