From 3abfa423e7ce800a70357ce49d006229c90b4198 Mon Sep 17 00:00:00 2001 From: Marcello Teodori Date: Fri, 4 Jan 2019 15:44:14 +0000 Subject: [PATCH] Created Dockerfile for standalone activiti modeler for activiti/activiti#2324 --- Dockerfile | 9 +++++++++ README.md | 6 ++++++ build.sh | 2 ++ run.sh | 2 ++ 4 files changed, 19 insertions(+) create mode 100644 Dockerfile create mode 100755 build.sh create mode 100755 run.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..719771a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +ARG VERSION=7.0.0.Beta4 + +FROM activiti/activiti-modeling-app:$VERSION as FRONTEND +FROM activiti/activiti-cloud-modeling:$VERSION + +COPY --from=FRONTEND /usr/share/nginx/html /public + +ENV SPRING_RESOURCES_STATICLOCATIONS=file:/public + diff --git a/README.md b/README.md index aa958c1..9f80cdf 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ # activiti-modeling-standalone + +Packaging of frontend and backend for modeling ap as a single docker image. + +Build with `./build.sh` then run with `./run.sh` and open a browser at + +SSO target need to be configured in the settings page. diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..64dd9b6 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker build -t activiti-modeling-standalone . \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..af92e64 --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker run -p 8080:8080 activiti-modeling-standalone \ No newline at end of file