From c4ab2ae7e1a2820c38f690bb891cb445f4cecfe1 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Fri, 17 May 2024 15:13:29 +0200 Subject: [PATCH] fix(forgejo-runner): wait for docker --- forgejo-runner/templates/deployment.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/forgejo-runner/templates/deployment.yaml b/forgejo-runner/templates/deployment.yaml index acf801c..d150356 100644 --- a/forgejo-runner/templates/deployment.yaml +++ b/forgejo-runner/templates/deployment.yaml @@ -48,7 +48,15 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - command: [ "/bin/forgejo-runner", "daemon" ] + command: + - "sh" + - "-c" + - | + while ! nc -z 127.0.0.1 2376