Skip to content

Commit

Permalink
entrypoint comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Nov 1, 2023
1 parent 6e813ee commit 4a71735
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 18 deletions.
1 change: 1 addition & 0 deletions .test/config.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

imageTests[openjdk]+='
dotted-environment-variables
java-ca-certificates-update
'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
variable.with.a.dot=value.foo
9 changes: 9 additions & 0 deletions .test/tests/dotted-environment-variables/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -o pipefail

CMD1=(env | grep variable.with.a.dot )

# Test run 1: Expect dotted environment variables to be set correctly
docker run --rm -e "variable.with.a.dot=value.foo" "$1" $CMD1 >&/dev/null
echo -n $?
5 changes: 3 additions & 2 deletions 11/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 11/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 17/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 17/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 21/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 21/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 8/jdk/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions 8/jre/alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down
5 changes: 3 additions & 2 deletions docker_templates/scripts/entrypoint.alpine-linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Converted to shell to avoid the need for bash in the image

set -e
Expand All @@ -20,7 +20,8 @@ if [ -n "$USE_SYSTEM_CA_CERTS" ]; then
CACERT="$JAVA_HOME/jre/lib/security/cacerts"
fi

# Update CA certificates and extract the trust store
# OpenJDK images used to create a hook for `update-ca-certificates`. Since we are using an entrypoint anyway, we
# might as well just generate the truststore and skip the hooks.
update-ca-certificates

trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
Expand Down

0 comments on commit 4a71735

Please sign in to comment.