dind
This commit is contained in:
@@ -63,7 +63,12 @@ spec:
|
||||
app.kubernetes.io/name: act-runner
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- command:
|
||||
- sh
|
||||
- -c
|
||||
- while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...';
|
||||
sleep 5; done; /sbin/tini -- run.sh
|
||||
env:
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: https://git.borninpain.de
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
@@ -78,22 +83,30 @@ spec:
|
||||
- name: DOCKER_CERT_PATH
|
||||
value: /certs/client
|
||||
- name: DOCKER_TLS_VERIFY
|
||||
value: "0"
|
||||
image: docker.io/gitea/act_runner:0.2.11-dind-rootless
|
||||
value: "1"
|
||||
image: docker.io/gitea/act_runner:0.2.13
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: act-runner
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data
|
||||
- mountPath: /config
|
||||
name: config
|
||||
- mountPath: /certs
|
||||
name: docker-certs
|
||||
- env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: /certs
|
||||
- mountPath: /certs
|
||||
name: docker-certs
|
||||
image: docker:23.0.6-dind
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: docker-dind
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- mountPath: /certs
|
||||
name: docker-certs
|
||||
restartPolicy: Always
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
@@ -103,6 +116,8 @@ spec:
|
||||
- configMap:
|
||||
name: gitea-runner-act-runner-config
|
||||
name: config
|
||||
- emptyDir: {}
|
||||
name: docker-certs
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
volumeClaimTemplates:
|
||||
|
||||
@@ -12,7 +12,7 @@ image:
|
||||
# -- Specify the image name to use (relative to `image.repository`).
|
||||
name: gitea/act_runner
|
||||
# -- Overrides the image tag whose default is the chart appVersion.
|
||||
tag: "0.2.11"
|
||||
tag: "0.2.13"
|
||||
# -- Specify the image repository to use.
|
||||
repository: docker.io
|
||||
# -- Specify the image pull policy. Valid values are `Always`, `Never`, `IfNotPresent`.
|
||||
@@ -32,7 +32,7 @@ runner:
|
||||
# Docker in Docker configuration for running Docker commands inside the runner.
|
||||
dockerDind:
|
||||
# -- Enable Docker in Docker with root user.
|
||||
enabled: false
|
||||
enabled: true
|
||||
# -- Docker DinD image repository and tag.
|
||||
image: docker:23.0.6-dind
|
||||
|
||||
|
||||
Reference in New Issue
Block a user