Skip to content

Commit 1ca5611

Browse files
authored
♻️ add loading of self signed certs to director-v2 and webserver entrypoint.sh (ITISFoundation#3678)
1 parent 9bf767c commit 1ca5611

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

services/director-v2/docker/entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ INFO="INFO: [$(basename "$0")] "
1313
WARNING="WARNING: [$(basename "$0")] "
1414
ERROR="ERROR: [$(basename "$0")] "
1515

16+
# Read self-signed SSH certificates (if applicable)
17+
#
18+
# In case the service must access a https service in a secure way (registry, mailserver, S3, ...) using
19+
# non-standard certificates (e.g. such as self-signed certificates), this call is needed.
20+
# It needs to be executed as root.
21+
update-ca-certificates
22+
1623
echo "$INFO" "Entrypoint for stage ${SC_BUILD_TARGET} ..."
1724
echo "$INFO" "User :$(id "$(whoami)")"
1825
echo "$INFO" "Workdir : $(pwd)"

services/web/server/docker/entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ INFO="INFO: [$(basename "$0")] "
88
WARNING="WARNING: [$(basename "$0")] "
99
ERROR="ERROR: [$(basename "$0")] "
1010

11+
# Read self-signed SSH certificates (if applicable)
12+
#
13+
# In case the service must access a https service in a secure way (registry, mailserver, S3, ...) using
14+
# non-standard certificates (e.g. such as self-signed certificates), this call is needed.
15+
# It needs to be executed as root.
16+
update-ca-certificates
17+
1118
# This entrypoint script:
1219
#
1320
# - Executes *inside* of the container upon start as --user [default root]

0 commit comments

Comments
 (0)