Skip to content

Commit

Permalink
resolve openshift/CRC homedir unwritable issues. (#1832)
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner authored Aug 7, 2023
1 parent 06c4589 commit fcb92c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile.rhel8
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ RUN set -ex; \

COPY . /app

# We need to force a consistent homedir for openshift, or it will
# default to the unwritable root directory.
ENV HOME="/app"

# https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform#group_ownership_and_file_permission
# We have to make /app group writable because openshift always runs with an random UUID
RUN chgrp -R 0 $HOME && \
chmod -R g=u $HOME

RUN set -ex; \
install -dm 0775 -o galaxy /var/lib/pulp/artifact \
/var/lib/pulp/tmp \
Expand Down

0 comments on commit fcb92c9

Please sign in to comment.