ci: test isolated shared runner daemon
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Canceled after 17s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (pull_request) Canceled after 0s
GeoIntel release gates / AI image, SBOM and container scan (pull_request) Canceled after 0s
Runner Docker diagnostic / diagnostic (push) Successful in 5s

This commit is contained in:
ChatGPT MCP
2026-08-28 17:53:13 +00:00
parent 2846efb2a0
commit 19726239ac
+19 -25
View File
@@ -12,35 +12,28 @@ jobs:
diagnostic: diagnostic:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
services:
docker:
image: docker@sha256:7c3e797187e43738220462658f4586572cbd3bf009f728b21e34d9c5c06ce431
env:
DOCKER_TLS_CERTDIR: ""
options: --privileged
env: env:
DOCKER_HOST: tcp://docker:2375 DOCKER_HOST: tcp://gitea-runner-dind:2375
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
steps: steps:
- name: Verify job-private Docker daemon - name: Verify isolated shared runner daemon
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
echo "DOCKER_HOST=${DOCKER_HOST}" docker info >/tmp/docker-info.txt
for attempt in $(seq 1 30); do
if docker info >/tmp/docker-info.txt 2>&1; then
break
fi
if [[ "$attempt" -eq 30 ]]; then
cat /tmp/docker-info.txt
exit 1
fi
sleep 1
done
docker version docker version
initial_containers="$(docker ps -aq | wc -l)"
echo "initial-containers=${initial_containers}" mapfile -t visible_names < <(docker ps -a --format '{{.Names}}')
test "${initial_containers}" -eq 0 echo "visible-container-count=${#visible_names[@]}"
for name in "${visible_names[@]}"; do
case "$name" in
GITEA-ACTIONS-TASK-*) ;;
*)
echo "Unexpected non-Actions container visible: $name" >&2
exit 1
;;
esac
done
workdir="$(mktemp -d)" workdir="$(mktemp -d)"
printf 'geo-intel-ci\n' > "${workdir}/proof.txt" printf 'geo-intel-ci\n' > "${workdir}/proof.txt"
@@ -48,6 +41,7 @@ jobs:
FROM scratch FROM scratch
COPY proof.txt /proof.txt COPY proof.txt /proof.txt
EOF EOF
docker build --pull=false -t geointel-runner-diagnostic:local "${workdir}" tag="geointel-runner-diagnostic:${GITHUB_RUN_ID:-local}-${GITHUB_RUN_ATTEMPT:-1}"
docker image inspect geointel-runner-diagnostic:local --format '{{.Id}}' docker build --pull=false -t "$tag" "${workdir}"
docker image rm geointel-runner-diagnostic:local >/dev/null docker image inspect "$tag" --format '{{.Id}}'
docker image rm "$tag" >/dev/null