Skip to content

Commit

Permalink
Chore(openshift): Fix the directory permission of experiment image fo…
Browse files Browse the repository at this point in the history
…r openshift cluster (#206)

Signed-off-by: uditgaurav <udit@chaosnative.com>
  • Loading branch information
uditgaurav authored Jan 20, 2022
1 parent 63d3a57 commit 556dbee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom/hardened-alpine/experiment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ RUN adduser -s /bin/true -u 1000 -D -h $APP_DIR $APP_USER \
&& mkdir "$DATA_DIR" "$CONF_DIR" \
&& chown -R "$APP_USER" "$APP_DIR" "$CONF_DIR" \
&& chmod 700 "$APP_DIR" "$DATA_DIR" "$CONF_DIR" \
# change to 0(root) group because openshift will run container with arbitrary uid as a member of root group
&& chgrp -R 0 "$APP_DIR" "$DATA_DIR" "$CONF_DIR" \
&& chmod -R g=u "$APP_DIR" "$DATA_DIR" "$CONF_DIR" \
&& echo "$APP_USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/litmus \
&& chmod 0440 /etc/sudoers.d/litmus

Expand Down

0 comments on commit 556dbee

Please sign in to comment.