From c01ebb996a74efa592226b10509b3414e8b1a5a6 Mon Sep 17 00:00:00 2001 From: George Adams Date: Thu, 25 Jul 2024 16:41:56 +0100 Subject: [PATCH] use jinja templating to remove distro specific cases in entrypoint.sh --- 11/jdk/alpine/entrypoint.sh | 40 +++++++++---------- 11/jdk/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 11/jdk/ubuntu/focal/entrypoint.sh | 40 +++++++++---------- 11/jdk/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 11/jdk/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 11/jre/alpine/entrypoint.sh | 40 +++++++++---------- 11/jre/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 11/jre/ubuntu/focal/entrypoint.sh | 40 +++++++++---------- 11/jre/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 11/jre/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 17/jdk/alpine/entrypoint.sh | 40 +++++++++---------- 17/jdk/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 17/jdk/ubuntu/focal/entrypoint.sh | 40 +++++++++---------- 17/jdk/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 17/jdk/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 17/jre/alpine/entrypoint.sh | 40 +++++++++---------- 17/jre/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 17/jre/ubuntu/focal/entrypoint.sh | 40 +++++++++---------- 17/jre/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 17/jre/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 21/jdk/alpine/entrypoint.sh | 40 +++++++++---------- 21/jdk/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 21/jdk/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 21/jdk/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 21/jre/alpine/entrypoint.sh | 40 +++++++++---------- 21/jre/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 21/jre/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 21/jre/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 22/jdk/alpine/entrypoint.sh | 40 +++++++++---------- 22/jdk/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 22/jdk/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 22/jdk/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 22/jre/alpine/entrypoint.sh | 40 +++++++++---------- 22/jre/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 22/jre/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 22/jre/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 8/jdk/alpine/entrypoint.sh | 40 +++++++++---------- 8/jdk/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 8/jdk/ubuntu/focal/entrypoint.sh | 40 +++++++++---------- 8/jdk/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 8/jdk/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- 8/jre/alpine/entrypoint.sh | 40 +++++++++---------- 8/jre/ubi/ubi9-minimal/entrypoint.sh | 40 +++++++++---------- 8/jre/ubuntu/focal/entrypoint.sh | 40 +++++++++---------- 8/jre/ubuntu/jammy/entrypoint.sh | 40 +++++++++---------- 8/jre/ubuntu/noble/entrypoint.sh | 40 +++++++++---------- .../{entrypoint.sh => entrypoint.sh.j2} | 31 ++++++-------- generate_dockerfiles.py | 18 ++++++--- 48 files changed, 944 insertions(+), 945 deletions(-) rename docker_templates/{entrypoint.sh => entrypoint.sh.j2} (86%) diff --git a/11/jdk/alpine/entrypoint.sh b/11/jdk/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jdk/alpine/entrypoint.sh +++ b/11/jdk/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jdk/ubi/ubi9-minimal/entrypoint.sh b/11/jdk/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/11/jdk/ubi/ubi9-minimal/entrypoint.sh +++ b/11/jdk/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jdk/ubuntu/focal/entrypoint.sh b/11/jdk/ubuntu/focal/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jdk/ubuntu/focal/entrypoint.sh +++ b/11/jdk/ubuntu/focal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jdk/ubuntu/jammy/entrypoint.sh b/11/jdk/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jdk/ubuntu/jammy/entrypoint.sh +++ b/11/jdk/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jdk/ubuntu/noble/entrypoint.sh b/11/jdk/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jdk/ubuntu/noble/entrypoint.sh +++ b/11/jdk/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jre/alpine/entrypoint.sh b/11/jre/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jre/alpine/entrypoint.sh +++ b/11/jre/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jre/ubi/ubi9-minimal/entrypoint.sh b/11/jre/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/11/jre/ubi/ubi9-minimal/entrypoint.sh +++ b/11/jre/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jre/ubuntu/focal/entrypoint.sh b/11/jre/ubuntu/focal/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jre/ubuntu/focal/entrypoint.sh +++ b/11/jre/ubuntu/focal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jre/ubuntu/jammy/entrypoint.sh b/11/jre/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jre/ubuntu/jammy/entrypoint.sh +++ b/11/jre/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/11/jre/ubuntu/noble/entrypoint.sh b/11/jre/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/11/jre/ubuntu/noble/entrypoint.sh +++ b/11/jre/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jdk/alpine/entrypoint.sh b/17/jdk/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jdk/alpine/entrypoint.sh +++ b/17/jdk/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jdk/ubi/ubi9-minimal/entrypoint.sh b/17/jdk/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/17/jdk/ubi/ubi9-minimal/entrypoint.sh +++ b/17/jdk/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jdk/ubuntu/focal/entrypoint.sh b/17/jdk/ubuntu/focal/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jdk/ubuntu/focal/entrypoint.sh +++ b/17/jdk/ubuntu/focal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jdk/ubuntu/jammy/entrypoint.sh b/17/jdk/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jdk/ubuntu/jammy/entrypoint.sh +++ b/17/jdk/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jdk/ubuntu/noble/entrypoint.sh b/17/jdk/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jdk/ubuntu/noble/entrypoint.sh +++ b/17/jdk/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jre/alpine/entrypoint.sh b/17/jre/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jre/alpine/entrypoint.sh +++ b/17/jre/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jre/ubi/ubi9-minimal/entrypoint.sh b/17/jre/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/17/jre/ubi/ubi9-minimal/entrypoint.sh +++ b/17/jre/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jre/ubuntu/focal/entrypoint.sh b/17/jre/ubuntu/focal/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jre/ubuntu/focal/entrypoint.sh +++ b/17/jre/ubuntu/focal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jre/ubuntu/jammy/entrypoint.sh b/17/jre/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jre/ubuntu/jammy/entrypoint.sh +++ b/17/jre/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/17/jre/ubuntu/noble/entrypoint.sh b/17/jre/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/17/jre/ubuntu/noble/entrypoint.sh +++ b/17/jre/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jdk/alpine/entrypoint.sh b/21/jdk/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/21/jdk/alpine/entrypoint.sh +++ b/21/jdk/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jdk/ubi/ubi9-minimal/entrypoint.sh b/21/jdk/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/21/jdk/ubi/ubi9-minimal/entrypoint.sh +++ b/21/jdk/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jdk/ubuntu/jammy/entrypoint.sh b/21/jdk/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/21/jdk/ubuntu/jammy/entrypoint.sh +++ b/21/jdk/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jdk/ubuntu/noble/entrypoint.sh b/21/jdk/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/21/jdk/ubuntu/noble/entrypoint.sh +++ b/21/jdk/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jre/alpine/entrypoint.sh b/21/jre/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/21/jre/alpine/entrypoint.sh +++ b/21/jre/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jre/ubi/ubi9-minimal/entrypoint.sh b/21/jre/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/21/jre/ubi/ubi9-minimal/entrypoint.sh +++ b/21/jre/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jre/ubuntu/jammy/entrypoint.sh b/21/jre/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/21/jre/ubuntu/jammy/entrypoint.sh +++ b/21/jre/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/21/jre/ubuntu/noble/entrypoint.sh b/21/jre/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/21/jre/ubuntu/noble/entrypoint.sh +++ b/21/jre/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jdk/alpine/entrypoint.sh b/22/jdk/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/22/jdk/alpine/entrypoint.sh +++ b/22/jdk/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jdk/ubi/ubi9-minimal/entrypoint.sh b/22/jdk/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/22/jdk/ubi/ubi9-minimal/entrypoint.sh +++ b/22/jdk/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jdk/ubuntu/jammy/entrypoint.sh b/22/jdk/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/22/jdk/ubuntu/jammy/entrypoint.sh +++ b/22/jdk/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jdk/ubuntu/noble/entrypoint.sh b/22/jdk/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/22/jdk/ubuntu/noble/entrypoint.sh +++ b/22/jdk/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jre/alpine/entrypoint.sh b/22/jre/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/22/jre/alpine/entrypoint.sh +++ b/22/jre/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jre/ubi/ubi9-minimal/entrypoint.sh b/22/jre/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/22/jre/ubi/ubi9-minimal/entrypoint.sh +++ b/22/jre/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jre/ubuntu/jammy/entrypoint.sh b/22/jre/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/22/jre/ubuntu/jammy/entrypoint.sh +++ b/22/jre/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/22/jre/ubuntu/noble/entrypoint.sh b/22/jre/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/22/jre/ubuntu/noble/entrypoint.sh +++ b/22/jre/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jdk/alpine/entrypoint.sh b/8/jdk/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jdk/alpine/entrypoint.sh +++ b/8/jdk/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jdk/ubi/ubi9-minimal/entrypoint.sh b/8/jdk/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/8/jdk/ubi/ubi9-minimal/entrypoint.sh +++ b/8/jdk/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jdk/ubuntu/focal/entrypoint.sh b/8/jdk/ubuntu/focal/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jdk/ubuntu/focal/entrypoint.sh +++ b/8/jdk/ubuntu/focal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jdk/ubuntu/jammy/entrypoint.sh b/8/jdk/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jdk/ubuntu/jammy/entrypoint.sh +++ b/8/jdk/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jdk/ubuntu/noble/entrypoint.sh b/8/jdk/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jdk/ubuntu/noble/entrypoint.sh +++ b/8/jdk/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jre/alpine/entrypoint.sh b/8/jre/alpine/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jre/alpine/entrypoint.sh +++ b/8/jre/alpine/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jre/ubi/ubi9-minimal/entrypoint.sh b/8/jre/ubi/ubi9-minimal/entrypoint.sh index dcc51cd2b..cc159d20c 100755 --- a/8/jre/ubi/ubi9-minimal/entrypoint.sh +++ b/8/jre/ubi/ubi9-minimal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ fi + update-ca-trust else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jre/ubuntu/focal/entrypoint.sh b/8/jre/ubuntu/focal/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jre/ubuntu/focal/entrypoint.sh +++ b/8/jre/ubuntu/focal/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jre/ubuntu/jammy/entrypoint.sh b/8/jre/ubuntu/jammy/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jre/ubuntu/jammy/entrypoint.sh +++ b/8/jre/ubuntu/jammy/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/8/jre/ubuntu/noble/entrypoint.sh b/8/jre/ubuntu/noble/entrypoint.sh index dcc51cd2b..41fbb4c48 100755 --- a/8/jre/ubuntu/noble/entrypoint.sh +++ b/8/jre/ubuntu/noble/entrypoint.sh @@ -1,4 +1,22 @@ #!/usr/bin/env sh +# ------------------------------------------------------------------------------ +# NOTE: THIS DOCKERFILE IS GENERATED VIA "generate_dockerfiles.py" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# ------------------------------------------------------------------------------ +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +93,9 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust - fi - - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates + cp -La /certificates/* /usr/local/share/ca-certificates/ fi + update-ca-certificates else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. diff --git a/docker_templates/entrypoint.sh b/docker_templates/entrypoint.sh.j2 similarity index 86% rename from docker_templates/entrypoint.sh rename to docker_templates/entrypoint.sh.j2 index dcc51cd2b..401b1ac02 100755 --- a/docker_templates/entrypoint.sh +++ b/docker_templates/entrypoint.sh.j2 @@ -1,4 +1,5 @@ #!/usr/bin/env sh +{% include 'partials/license.j2' %} # This script defines `sh` as the interpreter, which is available in all POSIX environments. However, it might get # started with `bash` as the shell to support dotted.environment.variable.names which are not supported by POSIX, but # are supported by `sh` in some Linux flavours. @@ -75,27 +76,18 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then # The reason why this is not part of the opt-in is because it leaves open the option to mount certificates at the # system location, for whatever reason. if [ -d /certificates ] && [ "$(ls -A /certificates 2>/dev/null)" ]; then - - # UBI - if [ -d /usr/share/pki/ca-trust-source/anchors/ ]; then - cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ - fi - - # Ubuntu/Alpine - if [ -d /usr/local/share/ca-certificates/ ]; then - cp -La /certificates/* /usr/local/share/ca-certificates/ - fi - fi - - # UBI - if command -v update-ca-trust >/dev/null; then - update-ca-trust + {%- if os == "ubuntu" or os == "alpine-linux" %} + cp -La /certificates/* /usr/local/share/ca-certificates/ + {%- elif os == "ubi9-minimal" %} + cp -La /certificates/* /usr/share/pki/ca-trust-source/anchors/ + {%- endif %} fi - # Ubuntu/Alpine - if command -v update-ca-certificates >/dev/null; then - update-ca-certificates - fi + {%- if os == "ubuntu" or os == "alpine-linux" %} + update-ca-certificates + {%- elif os == "ubi9-minimal" %} + update-ca-trust + {%- endif %} else # If we are not root, we cannot update the system truststore. That's bad news for tools like `curl` and `wget`, # but since the JVM is the primary focus here, we can live with that. @@ -107,3 +99,4 @@ fi export JRE_CACERTS_PATH exec "$@" + diff --git a/generate_dockerfiles.py b/generate_dockerfiles.py index ab4a3351c..434adc0e7 100644 --- a/generate_dockerfiles.py +++ b/generate_dockerfiles.py @@ -177,12 +177,18 @@ def archHelper(arch, os_name): # Entrypoint is currently only needed for CA certificate handling, which is not (yet) # available on Windows - # Copy entrypoint.sh to output directory - entrypoint_path = os.path.join("docker_templates", "entrypoint.sh") + # Generate entrypoint.sh + template_entrypoint_file = "entrypoint.sh.j2" + template_entrypoint = env.get_template(template_entrypoint_file) - if os.path.exists(entrypoint_path): - os.system( - f"cp {entrypoint_path} {os.path.join(output_directory, 'entrypoint.sh')}" - ) + entrypoint = template_entrypoint.render( + os=os_name + ) + + with open( + 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!")