Skip to content

Commit

Permalink
Merge pull request rh-openjdk#495 from jhuttana/add_guard_check
Browse files Browse the repository at this point in the history
[OPENJDK-2894] Add a guard check in Dockerfile for presence of jlink scripts
  • Loading branch information
jmtd authored May 30, 2024
2 parents 2f70a22 + 479ecad commit 9139fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/jlink/jlinked-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ objects:
source:
dockerfile: |
FROM -
RUN if [ ! -f "/opt/jboss/container/java/jlink/preflight.sh" ]; then echo "jlink scripts doesn't exist" 2>&1; exit 1; fi
USER 0
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-${JDK_VERSION}-openjdk-jmods
RUN mkdir -p /mnt/jrootfs
Expand Down

0 comments on commit 9139fa2

Please sign in to comment.