Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Comments

fix: run docker build as root for write permissions#48

Merged
mairas merged 1 commit intomainfrom
fix/docker-user-permissions
Nov 22, 2025
Merged

fix: run docker build as root for write permissions#48
mairas merged 1 commit intomainfrom
fix/docker-user-permissions

Conversation

@mairas
Copy link
Contributor

@mairas mairas commented Nov 22, 2025

Summary

Fix Docker build permissions by running as root inside the container.

Problem

The builder user inside the Docker container cannot write to /workspace because:

  • /workspace is mounted from the CI runner's working directory
  • The CI runner user owns the directory, not builder
  • mv commands fail silently, leaving no packages in the output

Solution

  • Added devtools-root function that runs with --user root
  • Use devtools-root for the build command
  • Keep devtools for interactive use

Test plan

  • Local build works and packages appear in project directory
  • CI build succeeds

🤖 Generated with Claude Code

The builder user inside the Docker container cannot write to the
mounted /workspace directory when running in CI (owned by the
GitHub runner user). Running as root inside the container fixes
this permission issue.

Added devtools-root function and use it for the build command.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mairas mairas merged commit cb58f3f into main Nov 22, 2025
1 check passed
@mairas mairas deleted the fix/docker-user-permissions branch November 22, 2025 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant