Support docker containers with non-root users and host user uid not equal to 1000 #191

Merged
telackey merged 4 commits from dboreham/builder-js-uid into main 2023-02-25 06:06:13 +00:00
Owner

Needed because Docker is badly designed and has no (usable) uid mapping abstraction.
This adopts the hacky solution developed for VSCode devcontainers where the "container user" is re-numbered to the host user's uid/gid at container build time, by means of buildnig a "per-uid" container.

Initial use is to allow building npm packages on Linux servers.

Almost nobody notices this nonsense on Docker because "it works on macos".

Needed because Docker is badly designed and has no (usable) uid mapping abstraction. This adopts the hacky solution developed for VSCode devcontainers where the "container user" is re-numbered to the host user's uid/gid at container build time, by means of buildnig a "per-uid" container. Initial use is to allow building npm packages on Linux servers. Almost nobody notices this nonsense on Docker because "it works on macos".
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#191
No description provided.