fix: move dind wait into runner container command to fix init deadlock
This commit is contained in:
@@ -21,18 +21,10 @@ spec:
|
|||||||
- ip: 10.245.189.80
|
- ip: 10.245.189.80
|
||||||
hostnames:
|
hostnames:
|
||||||
- git.lunarfront.tech
|
- 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:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: gitea/act_runner:latest
|
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:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|||||||
Reference in New Issue
Block a user