Skip to content

Commit

Permalink
fixup permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Oct 12, 2024
1 parent e49ad67 commit 8944b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Create Build Environment
run: |
sudo podman build . --tag 'fedora_builder'
sudo podman build . --tag 'fedora_builder' --build-arg UID=$(id -u) --build-arg GID=$(id -g)
- name: Compile Kernel
run: |
sudo podman run --rm -v $(pwd):/workspace fedora_builder \
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ RUN dnf install -y fedpkg fedora-packager rpmdevtools ncurses-devel pesign \
systemd-boot-unsigned systemd-ukify which xmlto xz-devel zlib-devel \
&& dnf clean all

RUN useradd -m -s /bin/bash builder
ARG UID=1000
ARG GID=1000

RUN groupadd -g $GID -o builder
RUN useradd -m -u $UID -g $GID -o -s /bin/bash builder

USER builder

Expand Down

0 comments on commit 8944b62

Please sign in to comment.