Skip to content

Commit 9139fa2

Browse files
authored
Merge pull request #495 from jhuttana/add_guard_check
[OPENJDK-2894] Add a guard check in Dockerfile for presence of jlink scripts
2 parents 2f70a22 + 479ecad commit 9139fa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/jlink/jlinked-app.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ objects:
5151
source:
5252
dockerfile: |
5353
FROM -
54+
RUN if [ ! -f "/opt/jboss/container/java/jlink/preflight.sh" ]; then echo "jlink scripts doesn't exist" 2>&1; exit 1; fi
5455
USER 0
5556
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-${JDK_VERSION}-openjdk-jmods
5657
RUN mkdir -p /mnt/jrootfs

0 commit comments

Comments
 (0)