Skip to content

fix: attempt to circumvent privilege issues with --fakeroot - #10

Open
m-jahn wants to merge 1 commit into
mainfrom
dev
Open

m-jahn wants to merge 1 commit into
mainfrom
dev

Conversation

@m-jahn

@m-jahn m-jahn commented Nov 20, 2026

Copy link
Copy Markdown
Member

Copilot AI lite review requested due to automatic review settings November 20, 2026 15:41
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A workflow-file issue remains: the change conflicts with the PR’s stated --fakeroot intent and can fail unclearly if apptainer isn’t on PATH due to the unchecked $(command -v apptainer) substitution.

1 open issue
What changed in this PR

Updates the Apptainer deployment workflow to address the mount-namespace privilege failure reported in issue #9 by changing how the container image build is executed in GitHub Actions.

Changes:

  • Replace the rootless apptainer build --fakeroot invocation with a sudo-executed apptainer build.
  • Remove the uidmap installation step that was previously required for --fakeroot.
File Description
.github/​workflows/​deploy-apptainer.yml Adjusts the Apptainer build step in the deploy workflow to run under sudo to work around privilege/mount-namespace errors.

Review effort: Lite
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

run: |
sudo apt-get install -y uidmap
apptainer build --fakeroot ../apptainer.sif ../apptainer.def
sudo "$(command -v apptainer)" build ../apptainer.sif ../apptainer.def
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy Apptainer action fails with mount permission error

2 participants