fix(ci): remove buildx network=host for DinD arc-runner compatibility#7732
Merged
fix(ci): remove buildx network=host for DinD arc-runner compatibility#7732
Conversation
ARC runners have 24Gi RAM — no need to cap at 4096MB. Restores UV_THREADPOOL_SIZE=4 and --max-old-space-size=8192.
- Set BUILDKIT_PROGRESS=plain so Docker build failures show full command output instead of condensed progress bar - Add root .dockerignore to exclude node_modules, .git, target/, and other large dirs from the Docker build context - Restore Dockerfile Astro build to 8192MB heap for ARC runners
Set BUILDKIT_PROGRESS=plain inline on the build command so it propagates directly to docker buildx. Add df/free/docker diagnostics before the build to capture disk and memory state.
On arc-runner-set, BuildKit runs inside the DinD sidecar. The network=host driver-opt makes BuildKit share DinD's network namespace, which prevents it from reaching the GHA cache endpoint (ACTIONS_CACHE_URL) that is only accessible from the runner container. This causes the build to hang and get killed with SIGINT (exit 130). Removing the option matches the working rentearth CI configuration that successfully builds Docker images on the same arc-runner-set.
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
driver-opts: network=hostfromsetup-buildx-actionindocker-test-app.yml— this is the likely root cause of exit code 130 on arc-runner-setnetwork=hostmakes BuildKit share the DinD sidecar's network namespace, preventing it from reaching the GHA cache endpoint (ACTIONS_CACHE_URL) which is only accessible from the runner container.dockerignoreat repo root to exclude.git,node_modules,target,**/.env*, and unused app directories from Docker build contextBUILDKIT_PROGRESS=plainboth at workflow level and inline on build command for full build output visibilitydf -h,free -m,docker system df)Context
The rentearth CI workflow successfully builds Docker images on the same
arc-runner-setwithoutdriver-opts: network=host. This change aligns the kbve Docker build configuration with that working pattern.Test plan