Skip to content

Commit

Permalink
ci: nightly ci now uses ubuntu 24.04+
Browse files Browse the repository at this point in the history
which needs user namespaces to be re-enabled so that stacker can
build/run

Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
  • Loading branch information
rchincha committed Jan 17, 2025
1 parent 002ac62 commit 435c2da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ jobs:
- uses: ./.github/actions/clean-runner
- name: Build image
run: |
sudo ./scripts/enable_userns.sh
make docker-image
kind-setup:
Expand Down
11 changes: 11 additions & 0 deletions scripts/enable_userns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh -xe

# enable user namespaces
sysctl -w kernel.apparmor_restrict_unprivileged_io_uring=0
sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
sysctl -w kernel.apparmor_restrict_unprivileged_userns_complain=0
sysctl -w kernel.apparmor_restrict_unprivileged_userns_force=0
sysctl -w kernel.unprivileged_bpf_disabled=2
sysctl -w kernel.unprivileged_userns_apparmor_policy=0
sysctl -w kernel.unprivileged_userns_clone=1

0 comments on commit 435c2da

Please sign in to comment.