fix: move dind wait into runner container command to fix init deadlock

This commit is contained in:
Ryan Moon
2026-04-03 07:23:43 -05:00
parent a7facce892
commit f82fc1252c

View File

@@ -21,18 +21,10 @@ spec:
- ip: 10.245.189.80
hostnames:
- git.lunarfront.tech
initContainers:
- name: wait-for-dind
image: docker:cli
command: ["sh", "-c", "until docker info > /dev/null 2>&1; do echo 'waiting for dind...'; sleep 2; done"]
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: DOCKER_TLS_VERIFY
value: "0"
containers:
- name: runner
image: gitea/act_runner:latest
command: ["sh", "-c", "until docker info > /dev/null 2>&1; do echo 'waiting for dind...'; sleep 2; done && exec /usr/local/bin/act_runner daemon"]
resources:
requests:
cpu: 100m