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_labels = join([
"pkthon:docker://nikolaik/python3.12-nodejs23",
"python:docker://nikolaik/python3.12-nodejs23",
"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04",
], ',')

View file

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