diff options
author | Mukesh Paliwal <mukesh.paliwal1@huawei.com> | 2021-09-02 16:08:17 +0530 |
---|---|---|
committer | Mukesh Paliwal <mukesh.paliwal1@huawei.com> | 2021-09-02 16:14:26 +0530 |
commit | 2f9df255cc2af42a0785bac1cb40747e28c1d802 (patch) | |
tree | 8e04909b5fdcfbafe9964fba8c157fc8dd522050 | |
parent | 760f937ae99339faef871c78b212fb6292500f8b (diff) |
Change the user in bpmn-infra container
Issue-ID: SO-3674
Signed-off-by: Mukesh Paliwal <mukesh.paliwal1@huawei.com>
Change-Id: I9e2159c79856f1a64602d173507fae931ad14a33
-rw-r--r-- | packages/docker/src/main/docker/docker-files/Dockerfile.so-bpmn-infra | 12 |
1 files changed, 11 insertions, 1 deletions
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 |