fix: add runner config to pass docker_host to job containers
This commit is contained in:
11
runner/config.yaml
Normal file
11
runner/config.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: gitea-runner-config
|
||||
namespace: runner
|
||||
data:
|
||||
config.yaml: |
|
||||
container:
|
||||
docker_host: tcp://localhost:2375
|
||||
network: host
|
||||
force_pull: false
|
||||
@@ -37,6 +37,11 @@ spec:
|
||||
value: tcp://localhost:2375
|
||||
- name: DOCKER_TLS_VERIFY
|
||||
value: "0"
|
||||
- name: CONFIG_FILE
|
||||
value: /etc/runner/config.yaml
|
||||
volumeMounts:
|
||||
- name: runner-config
|
||||
mountPath: /etc/runner
|
||||
|
||||
- name: dind
|
||||
image: docker:dind
|
||||
@@ -53,3 +58,8 @@ spec:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
args: ["--host=tcp://0.0.0.0:2375"]
|
||||
|
||||
volumes:
|
||||
- name: runner-config
|
||||
configMap:
|
||||
name: gitea-runner-config
|
||||
|
||||
Reference in New Issue
Block a user