fix(ci): run the docker job on the builders host socket #30
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-docker-host-socket"
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?
The
dockerjob (build, smoke and publish) has been failing on every ref sinceubuntu-22.04moved to the standalonebuild-*-generalbuilders. The workflow mounted and read DinD TLS files under/certs, which don't exist there. Mergedmainrun 16158 (job 30358) failed withCould not read certificate from /certs/server-cert.pembefore building, so v0.3.0 can't be tagged yet. Ops checked the builders:docker_host: automount, the host daemon on/var/run/docker.sock, buildkitd on the host, no/certsmaterial. The Fondue DinD runners are scaled to zero on purpose.Changes
/certsmounts and the TLS/SAN daemon selection. The job now uses the automounted Unix socket and fails by name if it's missing. buildkitd and the smoke server's published port are reached through the job container's bridge gateway. The smoke server publishes on that address only and retries if another job already holds the host port.:latestmoves only to the highest release tag.env:instead of being pasted into the script. It exists only during the cache build, removed by a trap, and around the release push. Pull requests still get no login.11/10.Verification
ghcr.io/catthehacker/ubuntu:act-22.04on a separate bridge network, with only the host socket mounted. Docker 29.8.2, using the v0.3.0 image built from5f638a8. Results::latestwas held for a tag below the highest and moved for the highest.cargo +stable(1.99) fmt, clippy-D warningsand test: all green. No Rust changes.Not fixed here (runner-level, ops)
docker_host: automounthands the host socket to every job on these builders, pull-request jobs from any repo included. A hostile co-tenant job can still reach a release job's container while the token is present. The full fix is to keep pull-request jobs off the builders that run trusted jobs.🤖 Generated with Claude Code
https://claude.ai/code/session_014Tow3aw74AFPQwy1Smuqdo