fix(dev): export HOST_UID/HOST_GID (not UID/GID) for compose #20

Merged
longjacksonle merged 1 commit from fix/dev-host-uid-mapping into main 2026-05-31 19:03:37 +02:00

compose.dev.yml interpolates ${HOST_UID}/${HOST_GID} for the container user: mapping and the dev-image build args, but the justfile exported UID/GID, so HOST_UID was never set and fell back to 1000. On a host where the developer's uid is not 1000 (e.g. 10002), the container ran as 1000 and could not read the bind-mounted, host-owned 0700 repo - api and web crash-looped with "project root does not exist" / "can't cd to /app/bunyip-web", and Traefik returned 404 with no healthy backend. Export the correctly-named vars so the user mapping matches the host.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

compose.dev.yml interpolates ${HOST_UID}/${HOST_GID} for the container `user:` mapping and the dev-image build args, but the justfile exported UID/GID, so HOST_UID was never set and fell back to 1000. On a host where the developer's uid is not 1000 (e.g. 10002), the container ran as 1000 and could not read the bind-mounted, host-owned 0700 repo - api and web crash-looped with "project root does not exist" / "can't cd to /app/bunyip-web", and Traefik returned 404 with no healthy backend. Export the correctly-named vars so the user mapping matches the host. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(dev): export HOST_UID/HOST_GID (not UID/GID) for compose
Some checks failed
Create release / Create release from merged PR (pull_request) Has been skipped
Check / fmt / clippy / build / test (pull_request) Failing after 4s
ff6d817b41
compose.dev.yml interpolates ${HOST_UID}/${HOST_GID} for the container `user:` mapping and the dev-image build args, but the justfile exported UID/GID, so HOST_UID was never set and fell back to 1000. On a host where the developer's uid is not 1000 (e.g. 10002), the container ran as 1000 and could not read the bind-mounted, host-owned 0700 repo - api and web crash-looped with "project root does not exist" / "can't cd to /app/bunyip-web", and Traefik returned 404 with no healthy backend. Export the correctly-named vars so the user mapping matches the host.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
longjacksonle deleted branch fix/dev-host-uid-mapping 2026-05-31 19:03:38 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
psa-systems/bunyip!20
No description provided.