Skip to content

Commit

Permalink
Change default user only for custom runners
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrete committed Jul 3, 2024
1 parent 72be10e commit 65b62de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
image: ghcr.io/parthenon-hpc-lab/rocm5.4.3-mpi-hdf5
# Map to local user id on CI machine to allow writing to build cache and
# forward device handles to access AMD GPU within container
options: --user 1000 --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined
options: --user 1000 -w /home/ci --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined
env:
CMAKE_GENERATOR: Ninja
CMAKE_BUILD_PARALLEL_LEVEL: 8 # num threads for build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-short.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
image: ghcr.io/parthenon-hpc-lab/rocm5.4.3-mpi-hdf5
# Map to local user id on CI machine to allow writing to build cache and
# forward device handles to access AMD GPU within container
options: --user 1000 --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined
options: --user 1000 -w /home/ci --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined
env:
CMAKE_GENERATOR: Ninja
CMAKE_BUILD_PARALLEL_LEVEL: 8 # num threads for build
Expand Down
2 changes: 0 additions & 2 deletions scripts/docker/Dockerfile.hip-rocm
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10

# uid 1000 maps to the one running the container on the CI host
RUN useradd --create-home --shell /bin/bash -u 1000 -G render ci
USER ci
WORKDIR /home/ci

0 comments on commit 65b62de

Please sign in to comment.