From 05e41d09f58bd898a0c7dd02b13518cef61d51aa Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Sun, 13 Jul 2025 17:55:17 +0530 Subject: [PATCH] use docker.sock directly --- cluster/apps/gitea-act/gitea-act.yml | 39 +++++++++++++--------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/cluster/apps/gitea-act/gitea-act.yml b/cluster/apps/gitea-act/gitea-act.yml index b3765a5..6b03728 100644 --- a/cluster/apps/gitea-act/gitea-act.yml +++ b/cluster/apps/gitea-act/gitea-act.yml @@ -20,7 +20,7 @@ spec: hostNetwork: true restartPolicy: Always volumes: - - name: docker-certs + - name: docker-socket emptyDir: {} - name: runner-data persistentVolumeClaim: @@ -37,34 +37,31 @@ spec: sleep 5 done echo "Gitea is ready!" + - name: docker + image: docker:28.3.2-dind + securityContext: + privileged: true + volumeMounts: + - name: docker-socket + mountPath: /var/run/ + startupProbe: + tcpSocket: + port: 2376 + livenessProbe: + tcpSocket: + port: 2376 + restartPolicy: Always containers: - name: runner image: gitea/act_runner:nightly - command: ["sh", "-c", "while ! nc -z localhost 2376