From d9bde195cdc25972ff56b23aced933930b883f73 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Mon, 16 Nov 2026 20:41:20 -0500 Subject: [PATCH 1/5] apps(forgejo): clear stale dind pid on start so runner restarts self-heal The dind container mounts the dind-run emptyDir at /var/run. A reboot restarts the container inside the same pod, so that emptyDir keeps the dead daemon's docker.pid; dockerd then aborts with "process with PID N is still running" and the runner sits in CrashLoopBackOff until someone deletes the pod. Removing the stale pid and socket before starting dockerd makes both the amd64 and arm64 runners recover on their own. --- apps/base/forgejo/runner-amd64.yaml | 7 +++++++ apps/base/forgejo/runner-arm64.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/apps/base/forgejo/runner-amd64.yaml b/apps/base/forgejo/runner-amd64.yaml index 44e9008..cdadc0d 100644 --- a/apps/base/forgejo/runner-amd64.yaml +++ b/apps/base/forgejo/runner-amd64.yaml @@ -76,6 +76,13 @@ spec: - sh - -c - | + # A reboot restarts this container inside the same pod, so the + # dind-run emptyDir keeps the previous daemon's pid file. dockerd + # then refuses to start ("process with PID N is still running") + # and the runner crashloops until the pod is deleted by hand. + # Clear the stale runtime state first so a restart is + # self-healing. + rm -f /var/run/docker.pid /var/run/docker.sock dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 & pid=$! i=0 diff --git a/apps/base/forgejo/runner-arm64.yaml b/apps/base/forgejo/runner-arm64.yaml index 74d2e5a..bb66a61 100644 --- a/apps/base/forgejo/runner-arm64.yaml +++ b/apps/base/forgejo/runner-arm64.yaml @@ -46,6 +46,13 @@ spec: - sh - -c - | + # A reboot restarts this container inside the same pod, so the + # dind-run emptyDir keeps the previous daemon's pid file. dockerd + # then refuses to start ("process with PID N is still running") + # and the runner crashloops until the pod is deleted by hand. + # Clear the stale runtime state first so a restart is + # self-healing. + rm -f /var/run/docker.pid /var/run/docker.sock # --insecure-registry: the Pi registry is plain HTTP on the WG # hub IP. Docker only treats 127.0.0.0/8 as insecure by default, # so without this `docker push 10.10.0.1:5000/...` from a job From 7dc2b8b07dedaeb5845669b211968a8c335de9fb Mon Sep 17 00:00:00 2001 From: tui-design Date: Tue, 17 Nov 2026 15:04:00 -0500 Subject: [PATCH 2/5] ci(forgejo): let the amd64 dind daemon push to the in-cluster registry Forgejo's container registry now lives in the cluster and is reachable only as the plain-HTTP ClusterIP forgejo.forgejo.svc.cluster.local:3000. Docker treats only 127.0.0.0/8 as insecure, so any workflow logging in to or pushing to that host would fail with "server gave HTTP response to HTTPS client". Adds --insecure-registry for that host to the amd64 dind daemon, which is the runner the osint-dashboard build now targets (amd64 matches the cluster, so images are usable on the nodes). --- apps/base/forgejo/runner-amd64.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/base/forgejo/runner-amd64.yaml b/apps/base/forgejo/runner-amd64.yaml index 44e9008..58e38d7 100644 --- a/apps/base/forgejo/runner-amd64.yaml +++ b/apps/base/forgejo/runner-amd64.yaml @@ -76,7 +76,16 @@ spec: - sh - -c - | - dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 & + # Forgejo's container registry is reached in-cluster as a plain + # HTTP ClusterIP (forgejo.forgejo.svc.cluster.local:3000). + # Docker only treats 127.0.0.0/8 as insecure by default, so + # without this a workflow that logs in to or pushes to that host + # dies with "server gave HTTP response to HTTPS client". + # The public hostname stays HTTPS via Cloudflare, which 413s + # layer uploads >~100MB, so in-cluster pushes are the reliable + # path for large images. + dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 \ + --insecure-registry=forgejo.forgejo.svc.cluster.local:3000 & pid=$! i=0 while [ "$i" -lt 30 ]; do From 1473f45fc61172b4ccfde9a4b6ce68f5db9a7f3b Mon Sep 17 00:00:00 2001 From: tui-design Date: Tue, 17 Nov 2026 15:05:26 -0500 Subject: [PATCH 3/5] ci(forgejo): give amd64 job containers the docker CLI Dispatch of the rewired osint build (run 1363) reached the new login step and died with '/var/run/act/workflow/3: line 9: docker: command not found'. amd64.toml only set docker_host, which injects the socket bind but not a CLI, and the job image is node:20-bullseye (no docker). arm64.toml already solves this by bind-mounting the dind sidecar's own /usr/local/bin/docker and cli-plugins into the job container; do the same here and drop docker_host so the socket is not mounted twice. No --memory cap: this runner also carries the existing amd64 release builds, which were already uncapped. --- apps/base/forgejo/runner-configmap.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/base/forgejo/runner-configmap.yaml b/apps/base/forgejo/runner-configmap.yaml index 5c2f132..fd489fb 100644 --- a/apps/base/forgejo/runner-configmap.yaml +++ b/apps/base/forgejo/runner-configmap.yaml @@ -99,7 +99,18 @@ data: dir: /data/cache container: privileged: true - docker_host: "unix:///var/run/docker.sock" + # No docker_host: it injects the socket bind into the job container, + # which collides with the explicit -v /var/run/docker.sock in options + # ("Duplicate mount point"). The options bind is the deliberate choice. + # + # The job image is node:20-bullseye, which ships no docker CLI, so the + # socket alone is not enough — `docker login`/`build`/`push` die with + # "docker: command not found". The CLI and cli-plugins come from the + # dind sidecar's own filesystem (docker:27-dind ships /usr/local/bin/ + # docker, docker-buildx, docker-compose), same as arm64.toml. + # No --memory cap: this runner also carries the existing amd64 release + # builds, which were already uncapped. + options: -v /usr/local/bin/docker:/usr/bin/docker:ro -v /usr/local/libexec/docker/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock force_pull: true valid_volumes: - "**" From 318e633419272ff07bf5567e210782f8094a5508 Mon Sep 17 00:00:00 2001 From: tui-design Date: Tue, 17 Nov 2026 15:04:00 -0500 Subject: [PATCH 4/5] ci(forgejo): let the amd64 dind daemon push to the in-cluster registry Forgejo's container registry now lives in the cluster and is reachable only as the plain-HTTP ClusterIP forgejo.forgejo.svc.cluster.local:3000. Docker treats only 127.0.0.0/8 as insecure, so any workflow logging in to or pushing to that host would fail with "server gave HTTP response to HTTPS client". Adds --insecure-registry for that host to the amd64 dind daemon, which is the runner the osint-dashboard build now targets (amd64 matches the cluster, so images are usable on the nodes). --- apps/base/forgejo/runner-amd64.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/base/forgejo/runner-amd64.yaml b/apps/base/forgejo/runner-amd64.yaml index cdadc0d..7fa6dba 100644 --- a/apps/base/forgejo/runner-amd64.yaml +++ b/apps/base/forgejo/runner-amd64.yaml @@ -83,7 +83,16 @@ spec: # Clear the stale runtime state first so a restart is # self-healing. rm -f /var/run/docker.pid /var/run/docker.sock - dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 & + # Forgejo's container registry is reached in-cluster as a plain + # HTTP ClusterIP (forgejo.forgejo.svc.cluster.local:3000). + # Docker only treats 127.0.0.0/8 as insecure by default, so + # without this a workflow that logs in to or pushes to that host + # dies with "server gave HTTP response to HTTPS client". + # The public hostname stays HTTPS via Cloudflare, which 413s + # layer uploads >~100MB, so in-cluster pushes are the reliable + # path for large images. + dockerd --host=unix:///var/run/docker.sock --tls=false --mtu=1420 \ + --insecure-registry=forgejo.forgejo.svc.cluster.local:3000 & pid=$! i=0 while [ "$i" -lt 30 ]; do From a385a8a360e82dfaf83e30245cdb1ae3d644e19a Mon Sep 17 00:00:00 2001 From: tui-design Date: Tue, 17 Nov 2026 15:05:26 -0500 Subject: [PATCH 5/5] ci(forgejo): give amd64 job containers the docker CLI Dispatch of the rewired osint build (run 1363) reached the new login step and died with '/var/run/act/workflow/3: line 9: docker: command not found'. amd64.toml only set docker_host, which injects the socket bind but not a CLI, and the job image is node:20-bullseye (no docker). arm64.toml already solves this by bind-mounting the dind sidecar's own /usr/local/bin/docker and cli-plugins into the job container; do the same here and drop docker_host so the socket is not mounted twice. No --memory cap: this runner also carries the existing amd64 release builds, which were already uncapped. --- apps/base/forgejo/runner-configmap.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/base/forgejo/runner-configmap.yaml b/apps/base/forgejo/runner-configmap.yaml index 5c2f132..fd489fb 100644 --- a/apps/base/forgejo/runner-configmap.yaml +++ b/apps/base/forgejo/runner-configmap.yaml @@ -99,7 +99,18 @@ data: dir: /data/cache container: privileged: true - docker_host: "unix:///var/run/docker.sock" + # No docker_host: it injects the socket bind into the job container, + # which collides with the explicit -v /var/run/docker.sock in options + # ("Duplicate mount point"). The options bind is the deliberate choice. + # + # The job image is node:20-bullseye, which ships no docker CLI, so the + # socket alone is not enough — `docker login`/`build`/`push` die with + # "docker: command not found". The CLI and cli-plugins come from the + # dind sidecar's own filesystem (docker:27-dind ships /usr/local/bin/ + # docker, docker-buildx, docker-compose), same as arm64.toml. + # No --memory cap: this runner also carries the existing amd64 release + # builds, which were already uncapped. + options: -v /usr/local/bin/docker:/usr/bin/docker:ro -v /usr/local/libexec/docker/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock force_pull: true valid_volumes: - "**"