attempt to fix runner docker config

This commit is contained in:
Valerio Lomanto 2025-02-11 16:37:02 +01:00
parent fd509c821c
commit 513e770b27
Signed by: verglasz
GPG key ID: 33263D8CFCFEC285
2 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ class soc::runner(
{ {
$runner_token = lookup({ 'name' => 'runner_token.vuln_management_repo', 'default_value' => undef }) $runner_token = lookup({ 'name' => 'runner_token.vuln_management_repo', 'default_value' => undef })
$runner_labels = join([ $runner_labels = join([
"pkthon:docker://nikolaik/python3.12-nodejs23", "python:docker://nikolaik/python3.12-nodejs23",
"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04", "ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04",
], ',') ], ',')

View file

@ -52,8 +52,8 @@ services:
volumes: volumes:
- /opt/forgejo-runner/data:/data - /opt/forgejo-runner/data:/data
- /opt/forgejo-runner/docker_certs:/certs - /opt/forgejo-runner/docker_certs:/certs
command: command: >-
- 'forgejo-runner' if ! grep '--mount type=bind,source=/certs/client,target=/certs/client,readonly' config.yml > /dev/null; then
- '--config' sed -i '\|options:| a \ \ \ \ --mount type=bind,source=/certs/client,target=/certs/client,readonly' config.yml
- 'config.yml' fi
- 'daemon' forgejo-runner --config config.yml daemon