Skip to content

Commit

Permalink
fix(image): add missing write access in filesystem (#2846)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
iromli committed Nov 2, 2022
1 parent 2aac2ca commit db4670d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-jans-fido2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
5 changes: 3 additions & 2 deletions docker-jans-scim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit db4670d

Please sign in to comment.