amd64 runner: unix-socket dind only, no TCP 2375.

This commit is contained in:
Sirius DevOps 2026-09-11 22:37:09 -04:00
commit 42509aacd9
No known key found for this signature in database
2 changed files with 21 additions and 10 deletions

View file

@ -72,13 +72,22 @@ spec:
- name: dind - name: dind
image: docker:27-dind image: docker:27-dind
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: command:
- --host=tcp://127.0.0.1:2375 - sh
- --host=unix:///var/run/docker.sock - -c
- --tls=false - |
env: dockerd --host=unix:///var/run/docker.sock --tls=false &
- name: DOCKER_TLS_CERTDIR pid=$!
value: "" i=0
while [ "$i" -lt 30 ]; do
if [ -S /var/run/docker.sock ]; then
chmod 666 /var/run/docker.sock
break
fi
i=$((i+1))
sleep 1
done
wait "$pid"
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
@ -103,7 +112,7 @@ spec:
set -e set -e
i=0 i=0
while [ "$i" -lt 60 ]; do while [ "$i" -lt 60 ]; do
if wget -qO- http://127.0.0.1:2375/_ping >/dev/null 2>&1; then if [ -S /var/run/docker.sock ]; then
break break
fi fi
i=$((i+1)) i=$((i+1))
@ -112,13 +121,15 @@ spec:
exec forgejo-runner --config /config/config.toml daemon exec forgejo-runner --config /config/config.toml daemon
env: env:
- name: DOCKER_HOST - name: DOCKER_HOST
value: tcp://127.0.0.1:2375 value: unix:///var/run/docker.sock
volumeMounts: volumeMounts:
- name: config-toml - name: config-toml
mountPath: /config/config.toml mountPath: /config/config.toml
subPath: amd64.toml subPath: amd64.toml
- name: data - name: data
mountPath: /data mountPath: /data
- name: dind-run
mountPath: /var/run
resources: resources:
requests: requests:
cpu: 50m cpu: 50m

View file

@ -34,6 +34,6 @@ data:
dir: /data/cache dir: /data/cache
container: container:
privileged: true privileged: true
docker_host: "tcp://127.0.0.1:2375" docker_host: "unix:///var/run/docker.sock"
valid_volumes: valid_volumes:
- "**" - "**"