CRITICAL: docker-compose.yml missing HOST_DATA_DIR — git clone fails in containerized deployment #120
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
merge-ready
merge-ready
needs-checks
needs-checks
needs-rebase
needs-rebase
needs-review
needs-review
needs-rework
needs-rework
notplanned
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#120
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Bug
When running upaas via
docker-compose up, git clone operations fail because Docker bind mounts use container-internal paths instead of host paths.Root Cause
docker-compose.ymldoes not setUPAAS_HOST_DATA_DIR. The config defaultsHostDataDirtoDataDirwhen empty (config.go:113-115). Inside the container,DataDir=/var/lib/upaas. WhenCloneRepois called,containerToHostPath()(deploy.go) returns the container path unchanged, so the git clone Docker container gets bind mounts pointing to/var/lib/upaas/builds/...— a path that exists inside the upaas container but not on the Docker host.The git clone container runs on the host Docker daemon (via the mounted socket), so it cannot access these container-internal paths.
Impact
All deployments fail when upaas is run via docker-compose (the primary documented deployment method). Manual and webhook-triggered deploys both affected.
Fix
Either:
UPAAS_HOST_DATA_DIRtodocker-compose.ymlwith the host-side path of the upaas-data volume, ORFiles
docker-compose.yml— missing env varinternal/config/config.go:113-115— HostDataDir fallbackinternal/service/deploy/deploy.go—containerToHostPath()