Skip to content

fix(ci): remove buildx network=host for DinD arc-runner compatibility#7732

Merged
h0lybyte merged 5 commits intodevfrom
trunk/axum-review-1772862257
Mar 7, 2026
Merged

fix(ci): remove buildx network=host for DinD arc-runner compatibility#7732
h0lybyte merged 5 commits intodevfrom
trunk/axum-review-1772862257

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 7, 2026

Summary

  • Remove driver-opts: network=host from setup-buildx-action in docker-test-app.yml — this is the likely root cause of exit code 130 on arc-runner-set
  • On DinD runners, network=host makes 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
  • Add .dockerignore at repo root to exclude .git, node_modules, target, **/.env*, and unused app directories from Docker build context
  • Add BUILDKIT_PROGRESS=plain both at workflow level and inline on build command for full build output visibility
  • Add pre-build diagnostics (df -h, free -m, docker system df)
  • Restore Dockerfile Astro build heap to 8192MB for ARC runner capacity
  • Bump axum-kbve to 1.0.28

Context

The rentearth CI workflow successfully builds Docker images on the same arc-runner-set without driver-opts: network=host. This change aligns the kbve Docker build configuration with that working pattern.

Test plan

  • Merge to dev and verify axum-kbve-e2e CI passes on arc-runner-set
  • Confirm BUILDKIT_PROGRESS=plain produces verbose output
  • Verify pre-build diagnostics show disk/memory state

h0lybyte added 5 commits March 7, 2026 00:52
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.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit cfa931d into dev Mar 7, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/axum-review-1772862257 branch March 7, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant