Skip to content

Commit

Permalink
👽 Allow unprivileged user namespaces for Apptainer in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Jan 10, 2025
1 parent 74d94df commit 665f670
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test_cpac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
tag: [latest, nightly]
exclude:
- platform: apptainer
python: 3.11
python: '3.10'
- platform: apptainer
python: 3.12
steps:
Expand All @@ -102,6 +102,11 @@ jobs:
uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: ${{ matrix.apptainer }}
- name: Allow unprivileged user namespaces
if: ${{ matrix.platform == 'applainer' }}
run: |
sudo sh -c 'echo kernel.apparmor_restrict_unprivileged_userns=0 >/etc/sysctl.d/90-disable-userns-restrictions.conf'
sudo sysctl -p /etc/sysctl.d/90-disable-userns-restrictions.conf
- name: Install cpac
run: cd $GITHUB_WORKSPACE && pip install -e ".[dev,testing,tsconcat]"
- name: Pull images
Expand Down

0 comments on commit 665f670

Please sign in to comment.