From ec8393c796a9404c085d55794bf17982e602083f Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Fri, 7 Aug 2026 00:39:48 -0500 Subject: [PATCH] admit: remote builds use --network=host (box buildkit network has no DNS) --- scripts/admit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/admit b/scripts/admit index d8f45ef..39d943f 100755 --- a/scripts/admit +++ b/scripts/admit @@ -170,7 +170,9 @@ build_image() { # A long compile can drop its own output stream even with keepalives. That # says nothing about whether the build finished, so ask the remote daemon # instead of trusting the exit status of a broken pipe. - ssh "${ssh_opts[@]}" "$host" "cd /opt/streambuild && docker build --platform linux/amd64 -t '$tag' ." >&2 || true + # --network=host: the box's buildkit build network cannot resolve DNS + # (NameServerFailure on every dependency fetch); the host stack can. + ssh "${ssh_opts[@]}" "$host" "cd /opt/streambuild && docker build --network=host --platform linux/amd64 -t '$tag' ." >&2 || true ssh "${ssh_opts[@]}" "$host" "docker image inspect '$tag' >/dev/null" || die "remote build did not produce $tag" note "transferring image to the local daemon" -- 2.51.2