From db4670d3adabc38b42411fe11bdcb6d6a9b4a0bd Mon Sep 17 00:00:00 2001 From: Isman Firmansyah Date: Wed, 2 Nov 2022 22:06:24 +0700 Subject: [PATCH] fix(image): add missing write access in filesystem (#2846) * fix(image): missing write access to modify jans-fido2.xml file Ref: #2843 * fix(image): missing write access to create/modify templates for SCIM image Ref: #2844 --- docker-jans-fido2/Dockerfile | 2 +- docker-jans-scim/Dockerfile | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-jans-fido2/Dockerfile b/docker-jans-fido2/Dockerfile index ad67e90cdfe..9b20df81275 100644 --- a/docker-jans-fido2/Dockerfile +++ b/docker-jans-fido2/Dockerfile @@ -223,7 +223,7 @@ RUN mkdir -p /etc/certs \ ${JETTY_BASE}/common/libs/couchbase \ /usr/share/java -COPY jetty/jans-fido2.xml ${JETTY_BASE}/jans-fido2/webapps/ +COPY --chown=1000:0 jetty/jans-fido2.xml ${JETTY_BASE}/jans-fido2/webapps/ COPY jetty/log4j2.xml ${JETTY_BASE}/jans-fido2/resources/ COPY conf/*.tmpl /app/templates/ diff --git a/docker-jans-scim/Dockerfile b/docker-jans-scim/Dockerfile index ff95baff4db..646f320b246 100644 --- a/docker-jans-scim/Dockerfile +++ b/docker-jans-scim/Dockerfile @@ -226,7 +226,7 @@ RUN mkdir -p /etc/certs \ ${JETTY_BASE}/common/libs/couchbase \ /usr/share/java -COPY jetty/jans-scim.xml ${JETTY_BASE}/jans-scim/webapps/ +COPY --chown=1000:0 jetty/jans-scim.xml ${JETTY_BASE}/jans-scim/webapps/ COPY jetty/log4j2.xml ${JETTY_BASE}/jans-scim/resources/ COPY conf/*.tmpl /app/templates/ COPY templates /app/templates @@ -246,7 +246,8 @@ RUN chmod -R g=u ${JETTY_BASE}/jans-scim/resources \ && chmod 664 /opt/jetty/etc/jetty.xml \ && chmod 664 /opt/jetty/etc/webdefault.xml \ && chown -R 1000:0 ${JETTY_BASE}/common/libs \ - && chown -R 1000:0 /usr/share/java + && chown -R 1000:0 /usr/share/java \ + && chmod -R g=u /app/templates/jans-scim \ USER 1000