Skip to content

Commit

Permalink
Add default gha 1000:1000 user to GHA images. (pantsbuild#18281)
Browse files Browse the repository at this point in the history
This will help avoid problems both with file permissions for files
shared
between the container and host as well as allow more software to run as
expected with a proper user and homedir.
  • Loading branch information
jsirois authored Feb 17, 2023
1 parent d02dd75 commit 8384c5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-support/wheel_build_aarch64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ RUN curl -LO "https://go.dev/dl/go1.17.1.linux-arm64.tar.gz" && \
tar -C /usr/local -xzf go1.17.1.linux-arm64.tar.gz

ENV PATH="${PATH}:/usr/local/go/bin"

RUN groupadd -g 1000 gha && \
adduser -u 1000 -g 1000 gha

USER gha
5 changes: 5 additions & 0 deletions build-support/wheel_build_x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
./aws/install && \
rm -rf ./aws && \
rm -f awscliv2.zip

RUN groupadd -g 1000 gha && \
adduser -u 1000 -g 1000 gha

USER gha

0 comments on commit 8384c5c

Please sign in to comment.