From 177eccda5ad8ba491e1ef6d337ca7a06bd5ff533 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 24 Feb 2021 11:22:32 -0500 Subject: Use latest base image version Update ccsdk/apps containers to use latest version of base CCSDK alpine image Change-Id: I76c435ee939a21640c8d73f75644059497da3084 Issue-ID: CCSDK-3179 Signed-off-by: Dan Timoney --- ms/sliboot/src/main/docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ms/sliboot/src') diff --git a/ms/sliboot/src/main/docker/Dockerfile b/ms/sliboot/src/main/docker/Dockerfile index 08529859..acd092f7 100644 --- a/ms/sliboot/src/main/docker/Dockerfile +++ b/ms/sliboot/src/main/docker/Dockerfile @@ -1,8 +1,8 @@ # Prepare stage for multistage image build ## START OF STAGE0 ## FROM @base.image.name@:@base.image.version@ AS stage0 +USER root -ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk ENV LOG_PATH /var/log/onap/ccsdk @@ -13,17 +13,19 @@ COPY opt /opt FROM @base.image.name@:@base.image.version@ +USER root MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org) ENV PROJECT_VERSION @project.version@ -ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk ENV CCSDK_HOME /opt/onap/ccsdk ENV CCSDK_CONFIG_DIR /opt/onap/ccsdk/config ENV SLIBOOT_JAR @ccsdk.sliboot.jar@ ENV SVCLOGIC_PROPERTIES /opt/onap/ccsdk/config/svclogic.properties ENV SVCLOGIC_DIR /opt/onap/ccsdk/svclogic/graphs ENV LOG_PATH /var/log/onap/ccsdk +ENV JAVA_HOME @java.home@ +ENV JAVA_SECURITY_DIR @java.security.dir@ # Install sudo and IP utilities RUN apk update && apk --no-cache add sudo iputils openssl @@ -42,7 +44,7 @@ RUN chmod +x ${CCSDK_HOME}/bin/*.sh # Install ssl and java certificates COPY $CCSDK_CONFIG_DIR/truststoreONAPall.jks $JAVA_SECURITY_DIR -RUN keytool -importkeystore -srckeystore $JAVA_SECURITY_DIR/truststoreONAPall.jks -srcstorepass changeit -destkeystore $JAVA_SECURITY_DIR/cacerts -deststorepass changeit +RUN if [ -f $JAVA_SECURITY_DIR}/cacerts ] ; then keytool -importkeystore -srckeystore $SDNC_STORE_DIR/truststoreONAPall.jks -srcstorepass changeit -destkeystore $JAVA_SECURITY_DIR/cacerts -deststorepass changeit -noprompt ; fi USER sli -- cgit 1.2.3-korg