aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/docker
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-ui/docker')
-rw-r--r--workflow-designer-ui/docker/Dockerfile16
-rw-r--r--workflow-designer-ui/docker/startup.sh25
2 files changed, 41 insertions, 0 deletions
diff --git a/workflow-designer-ui/docker/Dockerfile b/workflow-designer-ui/docker/Dockerfile
new file mode 100644
index 00000000..83e8d5ac
--- /dev/null
+++ b/workflow-designer-ui/docker/Dockerfile
@@ -0,0 +1,16 @@
+FROM jetty:9.4.9-alpine
+
+EXPOSE 8080
+EXPOSE 8443
+
+USER root
+
+ARG ARTIFACT
+
+ADD ${ARTIFACT} ${JETTY_BASE}/webapps/
+RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
+
+COPY startup.sh .
+RUN chmod 744 startup.sh
+
+ENTRYPOINT [ "./startup.sh" ] \ No newline at end of file
diff --git a/workflow-designer-ui/docker/startup.sh b/workflow-designer-ui/docker/startup.sh
new file mode 100644
index 00000000..359e6aca
--- /dev/null
+++ b/workflow-designer-ui/docker/startup.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# adding support for https
+HTTPS_ENABLED=${IS_HTTPS:-"false"}
+
+if [ "$HTTPS_ENABLED" = "true" ]
+then
+ echo "enable ssl"
+ if [ -z "$KEYSTORE_PATH" ]; then
+ java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl \
+ jetty.sslContext.keyStorePath=$KEYSTORE_PATH \
+ jetty.sslContext.keyStorePassword=$KEYSTORE_PASSWORD \
+ jetty.sslContext.keyStoreType=$KEYSTORE_TYPE \
+ jetty.sslContext.trustStorePath=$TRUSTSTORE_PATH \
+ jetty.sslContext.trustStorePassword=$TRUSTSTORE_PASSWORD \
+ jetty.sslContext.trustStoreType=$TRUSTSTORE_TYPE \
+ else
+ echo "Using jetty default SSL"
+ java -jar "${JETTY_HOME}/start.jar" --add-to-start=https,ssl
+ fi
+else
+ echo "no ssl required"
+fi
+
+java -DproxyTo=$BACKEND $JAVA_OPTIONS -jar $JETTY_HOME/start.jar \ No newline at end of file