Skip to content

Commit

Permalink
feat: allow trusting additional certificates at run time
Browse files Browse the repository at this point in the history
Change to base image meant that any custom certs need to be copied into `/etc/ssl/certs/` before running `update-ca-certificates`

Signed-off-by: Daniel.Hill <daniel.hill@engineering.digital.dwp.gov.uk>
  • Loading branch information
dan-hill2802 committed Aug 3, 2022
1 parent cc359c4 commit ad3329e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash

update-ca-certificates || true
if [ -n "$CUSTOM_CA_DIR" ]; then
cp ${CUSTOM_CA_DIR}/* /etc/ssl/certs/
update-ca-certificates
fi

# This ensures that kitchen errors are maintained when piped through sed
set -o pipefail
Expand Down

0 comments on commit ad3329e

Please sign in to comment.