fix(docker): pre-create /state and config dirs with claude ownership #30
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/29"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pre-create
/state,/home/claude/.config, and/home/claude/.config/claude-codewithclaude:claudeownership beforeUSER claude. Docker creates named volumes and bind-mount parent directories asroot:root 0755unless the image declares them first — this caused the firstgit cloneinside fresh containers to fail with "Permission denied".Also adds a static
grepcheck in thedockerfileCI job to guard against future regression.Closes #29
CI: ✅ green (run #1525, 56 s)
All acceptance criteria from #29 are satisfied:
/state,/home/claude/.config, and/home/claude/.config/claude-codeare pre-created withinstall -d -o claude -g claude -m 0755in a singleRUNblock, beforeUSER claude. Parent directory is correctly ordered before child.dockerfilejob step greps forinstall -d -o claude; it will fail the build if the block is removed. Correctly placed before the existingUSERcheck.justfileandsrc/container.tsuntouched.LGTM.