Setting docker_host makes the runner bind the docker socket into the job container itself, colliding with the explicit -v /var/run/docker.sock:/var/run/docker.sock in container.options, so every job died at create with 'Duplicate mount point: /var/run/docker.sock'. Restores the config the Pi compose runner ran green for months.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: forgejo-runner-config
|
|
namespace: forgejo
|
|
data:
|
|
arm64.toml: |
|
|
log:
|
|
level: info
|
|
runner:
|
|
file: /config/runner.ini
|
|
capacity: 2
|
|
timeout: 1h
|
|
cache: /opt/siriusdevops/runner/cache
|
|
cache:
|
|
enabled: true
|
|
dir: /opt/siriusdevops/runner/cache
|
|
container:
|
|
privileged: true
|
|
# No docker_host here: setting it makes the runner inject the host socket
|
|
# bind into the job container itself, which collides with the explicit
|
|
# -v /var/run/docker.sock in options ("Duplicate mount point").
|
|
options: -v /usr/local/bin/docker-static:/usr/bin/docker:ro -v /opt/siriusdevops/runner/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock
|
|
valid_volumes:
|
|
- "**"
|
|
amd64.toml: |
|
|
log:
|
|
level: info
|
|
runner:
|
|
file: /data/runner.ini
|
|
capacity: 2
|
|
timeout: 1h
|
|
cache: /data/cache
|
|
cache:
|
|
enabled: true
|
|
dir: /data/cache
|
|
container:
|
|
privileged: true
|
|
docker_host: "unix:///var/run/docker.sock"
|
|
valid_volumes:
|
|
- "**"
|