Skip to content

Commit f125b75

Browse files
committed
Add a guard check in Dockerfile for presence of jlink scripts
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent 2f70a22 commit f125b75

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 exist "; else echo "jlink scripts doesn't exist"; 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)