summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/docker
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui/docker')
-rw-r--r--sdc-workflow-designer-ui/docker/Dockerfile18
-rw-r--r--sdc-workflow-designer-ui/docker/org.onap.sdc.p12bin0 -> 4459 bytes
-rw-r--r--sdc-workflow-designer-ui/docker/org.onap.sdc.trust.jksbin0 -> 1413 bytes
-rw-r--r--sdc-workflow-designer-ui/docker/startup.sh27
4 files changed, 45 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/docker/Dockerfile b/sdc-workflow-designer-ui/docker/Dockerfile
new file mode 100644
index 00000000..58130888
--- /dev/null
+++ b/sdc-workflow-designer-ui/docker/Dockerfile
@@ -0,0 +1,18 @@
+FROM jetty:9.4-jre8-alpine
+
+EXPOSE 8080
+EXPOSE 8443
+
+USER root
+
+ARG ARTIFACT
+
+COPY org.onap.sdc.p12 org.onap.sdc.trust.jks ${JETTY_BASE}/etc/
+
+ADD ${ARTIFACT} ${JETTY_BASE}/webapps/
+RUN chown -R jetty:jetty ${JETTY_BASE}/webapps ${JETTY_BASE}/etc/
+
+COPY startup.sh .
+RUN chmod 744 startup.sh
+
+ENTRYPOINT [ "./startup.sh" ]
diff --git a/sdc-workflow-designer-ui/docker/org.onap.sdc.p12 b/sdc-workflow-designer-ui/docker/org.onap.sdc.p12
new file mode 100644
index 00000000..d03ca1c9
--- /dev/null
+++ b/sdc-workflow-designer-ui/docker/org.onap.sdc.p12
Binary files differ
diff --git a/sdc-workflow-designer-ui/docker/org.onap.sdc.trust.jks b/sdc-workflow-designer-ui/docker/org.onap.sdc.trust.jks
new file mode 100644
index 00000000..d07ce1a6
--- /dev/null
+++ b/sdc-workflow-designer-ui/docker/org.onap.sdc.trust.jks
Binary files differ
diff --git a/sdc-workflow-designer-ui/docker/startup.sh b/sdc-workflow-designer-ui/docker/startup.sh
new file mode 100644
index 00000000..b2f2d516
--- /dev/null
+++ b/sdc-workflow-designer-ui/docker/startup.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# adding support for https
+HTTPS_ENABLED=${IS_HTTPS:-"false"}
+CLIENT_AUTH=${IS_CLIENT_AUTH:-"false"}
+if [ "$HTTPS_ENABLED" = "true" ]
+then
+ echo "enable ssl"
+
+ java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl \
+ jetty.sslContext.keyStorePath=$KEYSTORE_PATH \
+ jetty.sslContext.keyStorePassword=$KEYSTORE_PASS \
+ jetty.sslContext.keyManagerPassword=$KEYSTORE_PASS \
+ jetty.sslContext.trustStorePath=$TRUSTSTORE_PATH \
+ jetty.sslContext.trustStorePassword=$TRUSTSTORE_PASS
+
+ echo "setting SSL environment variable"
+
+ SSL_JAVA_OPTS=" -DkeystorePath=$JETTY_BASE/$KEYSTORE_PATH -DkeystorePassword=$KEYSTORE_PASS -DkeyManagerPassword=$KEYSTORE_PASS -DtruststorePath=$JETTY_BASE/$KEYSTORE_PATH -DtruststorePassword=$TRUSTSTORE_PASS -DsslTrustAll=$TRUST_ALL"
+
+ echo $SSL_JAVA_OPTS
+
+else
+ echo "no ssl required"
+fi
+java $JAVA_OPTIONS -DproxyTo=$BACKEND $SSL_JAVA_OPTS -jar $JETTY_HOME/start.jar
+