Skip to content

Commit

Permalink
further entrypoint.sh templating improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Aug 7, 2024
1 parent 1ee3930 commit 498fb5b
Show file tree
Hide file tree
Showing 48 changed files with 11 additions and 235 deletions.
5 changes: 0 additions & 5 deletions 11/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jdk/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jdk/ubuntu/focal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jdk/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jdk/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jre/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jre/ubuntu/focal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jre/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 11/jre/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jdk/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jdk/ubuntu/focal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jdk/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jdk/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jre/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jre/ubuntu/focal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jre/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 17/jre/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jdk/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jdk/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jdk/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jre/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jre/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 21/jre/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 22/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 22/jdk/ubi/ubi9-minimal/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 22/jdk/ubuntu/jammy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 22/jdk/ubuntu/noble/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
5 changes: 0 additions & 5 deletions 22/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ TMPDIR=${TMPDIR:-/tmp}
# JDK truststore location
JRE_CACERTS_PATH=$JAVA_HOME/lib/security/cacerts

# JDK8 puts its JRE in a subdirectory
if [ -f "$JAVA_HOME/jre/lib/security/cacerts" ]; then
JRE_CACERTS_PATH=$JAVA_HOME/jre/lib/security/cacerts
fi

# Opt-in is only activated if the environment variable is set
if [ -n "$USE_SYSTEM_CA_CERTS" ]; then

Expand Down
Loading

0 comments on commit 498fb5b

Please sign in to comment.