From 2f9df255cc2af42a0785bac1cb40747e28c1d802 Mon Sep 17 00:00:00 2001 From: Mukesh Paliwal Date: Thu, 2 Sep 2021 16:08:17 +0530 Subject: Change the user in bpmn-infra container Issue-ID: SO-3674 Signed-off-by: Mukesh Paliwal Change-Id: I9e2159c79856f1a64602d173507fae931ad14a33 --- .../src/main/docker/docker-files/Dockerfile.so-bpmn-infra | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/docker/src') diff --git a/packages/docker/src/main/docker/docker-files/Dockerfile.so-bpmn-infra b/packages/docker/src/main/docker/docker-files/Dockerfile.so-bpmn-infra index d735827469..8c28e04d76 100644 --- a/packages/docker/src/main/docker/docker-files/Dockerfile.so-bpmn-infra +++ b/packages/docker/src/main/docker/docker-files/Dockerfile.so-bpmn-infra @@ -1,5 +1,9 @@ FROM camunda/camunda-bpm-platform:7.12.0 + +ARG user=so +ARG group=so + RUN sed -i 's/port="8080"/port="8081"/' /camunda/conf/server.xml RUN rm -r /camunda/webapps/examples /camunda/webapps/docs /camunda/webapps/camunda-invoice @@ -7,7 +11,13 @@ RUN rm -r /camunda/webapps/examples /camunda/webapps/docs /camunda/webapps/camun USER root COPY ca-certificates/onap-ca.crt /usr/local/share/ca-certificates/onap-ca.crt RUN update-ca-certificates --fresh -USER camunda + + +RUN addgroup $group && adduser --system --disabled-password --no-create-home --ingroup $group $user && \ + chown -R $user:$group /camunda && \ + chmod -R u+rw /camunda + +USER $user # Springboot configuration (required) VOLUME /camunda/app/config -- cgit 1.2.3-korg