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