fogejo actions runner: use host networking (for now)

This commit is contained in:
Casper V. Kristensen 2024-05-14 01:29:35 +02:00
parent 31c13a2a51
commit 867a64f141

View file

@ -93,7 +93,7 @@
# actions require bash, git and nodejs, as well as a filesystem that # actions require bash, git and nodejs, as well as a filesystem that
# follows the filesystem hierarchy standard. # follows the filesystem hierarchy standard.
labels = [ labels = [
"debian-latest:docker://node:20-bullseye" "debian-latest:docker://docker.io/library/node:20-bullseye"
]; ];
# https://forgejo.org/docs/latest/admin/actions/#configuration # https://forgejo.org/docs/latest/admin/actions/#configuration
settings = { settings = {
@ -101,6 +101,17 @@
# Default fetch interval is 2s -- no need to spam the server # Default fetch interval is 2s -- no need to spam the server
fetch_interval = "1m"; fetch_interval = "1m";
}; };
container = {
# TODO: host networking is required to allow contacting services
# running on the sigma-public address, such as git.caspervk.net.
# We don't need this if we replace Docker with Podman, since that has
# actual sane networking. Note, however, that the forgejo runner
# requires a Docker socket. Podman can emulate this, and the runner
# be configured to use it through
# `container.docker_host = "unix://podman.sock"`, but we need to figure
# out how to run a non-root Podman user socket easily in NixOS.
network = "host";
};
}; };
}; };
}; };