/
/
/
Ansible role that deployes services on my runner machine
1log:
2 level: {{ forgejo_runner_loglevel }}
3runner:
4 capacity: {{ forgejo_runner_capacity }}
5{% if forgejo_runner_config_docker_socket | default(false) %}
6
7# Only the docker-label runner sets this. Its jobs run in a fresh container
8# rather than inside the runner, so a job that builds an image has no daemon
9# unless the socket is handed to it explicitly -- `docker build` fails with
10# "Cannot connect to the Docker daemon", which reads like a broken daemon
11# rather than a missing mount.
12#
13# The host-label runners deliberately do NOT get this block: they execute jobs
14# as themselves and already have the socket, and re-rendering their config is
15# what would disturb the legacy repositories still building on them.
16container:
17 options: -v /var/run/docker.sock:/var/run/docker.sock
18 # A bind mount is refused unless its source is listed here.
19 valid_volumes:
20 - /var/run/docker.sock
21{% endif %}
22