Skip to content

Commit

Permalink
--chmod support for COPY and ADD (#624)
Browse files Browse the repository at this point in the history
* --chmod support for COPY and ADD

Signed-off-by: shalk(xiao kun) <[email protected]>

* add generated updates

* fixup

* Update entrypoint.j2

---------

Signed-off-by: shalk(xiao kun) <[email protected]>
Co-authored-by: George Adams <[email protected]>
Co-authored-by: George Adams <[email protected]>
  • Loading branch information
3 people authored Aug 12, 2024
1 parent 3af43b4 commit 3f6f642
Show file tree
Hide file tree
Showing 97 changed files with 53 additions and 55 deletions.
2 changes: 1 addition & 1 deletion 11/jdk/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 11/jdk/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jdk/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 11/jdk/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jdk/ubuntu/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 11/jdk/ubuntu/focal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jdk/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 11/jdk/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jdk/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 11/jdk/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jre/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 11/jre/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jre/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 11/jre/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jre/ubuntu/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 11/jre/ubuntu/focal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jre/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 11/jre/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 11/jre/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 11/jre/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jdk/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 17/jdk/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jdk/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 17/jdk/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jdk/ubuntu/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 17/jdk/ubuntu/focal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jdk/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 17/jdk/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jdk/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 17/jdk/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jre/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 17/jre/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jre/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 17/jre/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jre/ubuntu/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 17/jre/ubuntu/focal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jre/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 17/jre/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 17/jre/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 17/jre/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jdk/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 21/jdk/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jdk/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 21/jdk/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jdk/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 21/jdk/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jdk/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 21/jdk/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jre/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 21/jre/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jre/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 21/jre/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jre/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 21/jre/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 21/jre/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 21/jre/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jdk/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 22/jdk/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jdk/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 22/jdk/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jdk/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 22/jdk/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jdk/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RUN set -eux; \
echo "javac --version"; javac --version; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]

CMD ["jshell"]
Empty file modified 22/jdk/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jre/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 22/jre/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jre/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 22/jre/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jre/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 22/jre/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 22/jre/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java --version"; java --version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 22/jre/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jdk/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ RUN set -eux; \
echo "javac -version"; javac -version; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jdk/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jdk/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ RUN set -eux; \
echo "javac -version"; javac -version; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jdk/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jdk/ubuntu/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ RUN set -eux; \
echo "javac -version"; javac -version; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jdk/ubuntu/focal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jdk/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ RUN set -eux; \
echo "javac -version"; javac -version; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jdk/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jdk/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ RUN set -eux; \
echo "javac -version"; javac -version; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jdk/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jre/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jre/alpine/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jre/ubi/ubi9-minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jre/ubi/ubi9-minimal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jre/ubuntu/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jre/ubuntu/focal/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jre/ubuntu/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jre/ubuntu/jammy/entrypoint.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion 8/jre/ubuntu/noble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ RUN set -eux; \
echo "Verifying install ..."; \
echo "java -version"; java -version; \
echo "Complete."
COPY entrypoint.sh /__cacert_entrypoint.sh
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
Empty file modified 8/jre/ubuntu/noble/entrypoint.sh
100755 → 100644
Empty file.
3 changes: 1 addition & 2 deletions docker_templates/alpine-linux.Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ ENV JAVA_VERSION {{ java_version }}
{% include 'partials/multi-arch-install.j2' %}

{% include 'partials/version-check.j2' %}
COPY entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
{% include 'partials/entrypoint.j2' %}
{% include 'partials/jshell.j2' %}
2 changes: 2 additions & 0 deletions docker_templates/partials/entrypoint.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
5 changes: 2 additions & 3 deletions docker_templates/ubi9-minimal.Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ ENV JAVA_VERSION {{ java_version }}
{% include 'partials/multi-arch-install.j2' %}

{% include 'partials/version-check.j2' %}
COPY entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
{% include 'partials/jshell.j2' %}
{% include 'partials/entrypoint.j2' %}
{% include 'partials/jshell.j2' %}
5 changes: 2 additions & 3 deletions docker_templates/ubuntu.Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@ ENV JAVA_VERSION {{ java_version }}
ldconfig;
{% endif %}
{% include 'partials/version-check.j2' %}
COPY entrypoint.sh /__cacert_entrypoint.sh
ENTRYPOINT ["/__cacert_entrypoint.sh"]
{% include 'partials/jshell.j2' %}
{% include 'partials/entrypoint.j2' %}
{% include 'partials/jshell.j2' %}
1 change: 0 additions & 1 deletion generate_dockerfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,5 @@ def archHelper(arch, os_name):
os.path.join(output_directory, "entrypoint.sh"), "w"
) as out_file:
out_file.write(entrypoint)
os.chmod(os.path.join(output_directory, "entrypoint.sh"), 0o755)

print("Dockerfiles generated successfully!")

0 comments on commit 3f6f642

Please sign in to comment.