aboutsummaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
authorajay_dp001 <ajay.deep.singh@est.tech>2020-10-02 23:38:08 +0530
committerajay_dp001 <ajay.deep.singh@est.tech>2020-10-02 23:38:14 +0530
commitaf0af5c344ce2449f146b3d772be0eec34c3a838 (patch)
tree544ba1350a8b14c6c178cf5f6c02af97f7333e14 /packages/docker/src
parent1ae0b7fb1fd12587f24b19cabfcfc93e2204204e (diff)
[SO] Updating SO base image Dockerfile
Issue-ID: SO-3243 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: I7179c1403f9bfe362aa45e71a4e78fdcf5577299
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/docker-files/Dockerfile.so-base-image7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/docker/src/main/docker/docker-files/Dockerfile.so-base-image b/packages/docker/src/main/docker/docker-files/Dockerfile.so-base-image
index db57688dc1..a1f4fc15ae 100644
--- a/packages/docker/src/main/docker/docker-files/Dockerfile.so-base-image
+++ b/packages/docker/src/main/docker/docker-files/Dockerfile.so-base-image
@@ -8,7 +8,12 @@ ENV http_proxy=$HTTP_PROXY
ENV https_proxy=$HTTPS_PROXY
# Install commonly needed tools
-RUN apk --no-cache add curl netcat-openbsd nss apache2-utils
+RUN apk --no-cache add curl netcat-openbsd nss apache2-utils java-cacerts
+
+# Create symlink for default Java truststore
+RUN set -eux; \
+ rm -rf "$JAVA_HOME/lib/security/cacerts"; \
+ ln -sT /etc/ssl/certs/java/cacerts "$JAVA_HOME/lib/security/cacerts"
# Create 'so' user
RUN addgroup -g 1000 so && adduser -S -u 1000 -G so -s /bin/sh so