Skip to content

Commit

Permalink
Change ownership of /home/user/.gitconfig to be 10001 instead of root
Browse files Browse the repository at this point in the history
This simplifies the build of the universal developer image as it allows
steps running as user 10001 to modify the file.

Signed-off-by: Angel Misevski <[email protected]>
  • Loading branch information
amisevsk committed Aug 31, 2023
1 parent fad43b1 commit f4bfea3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ RUN \
# Copy the global git configuration to user config as global /etc/gitconfig
# file may be overwritten by a mounted file at runtime
cp /etc/gitconfig /home/user/.gitconfig && \
chown 10001 /home/user/.gitconfig && \
# Set permissions on /etc/passwd and /home to allow arbitrary users to write
chgrp -R 0 /home && \
chmod -R g=u /etc/passwd /etc/group /home && \
Expand Down

0 comments on commit f4bfea3

Please sign in to comment.