ci: deliver the smoke-test config via docker cp instead of a bind mount

This commit is contained in:
2026-08-07 17:55:56 +02:00
parent ee342c1e69
commit 9b12dbaaa0
+7 -2
View File
@@ -262,11 +262,16 @@ jobs:
}
EOF
cid=$(docker run -d --name nxdns-smoke \
# No bind mount: the runner talks to the daemon over a mounted
# socket, so a -v path would resolve on the docker host (where the
# workspace does not exist) and mount an empty directory over
# /etc/nxdns. docker cp streams the file through the socket instead.
cid=$(docker create --name nxdns-smoke \
-p 127.0.0.1:8080:8080 \
-v "$PWD/etc-nxdns:/etc/nxdns:ro" \
nxdns:ci)
trap 'docker rm -f nxdns-smoke >/dev/null 2>&1 || true' EXIT
docker cp etc-nxdns/config.zon nxdns-smoke:/etc/nxdns/config.zon
docker start nxdns-smoke
# The published port works when the job runs on the docker host or in
# DinD; the container IP covers a runner that shares the daemon over