Files
Job79andClaude Opus 5.5 52b4cea73e Run podman in jobs
The job image gets podman, and each job a volume for /var/lib/containers,
so podman inside the job keeps its storage off the container's overlayfs.
Tested by building Job79/devcontainer's two images in a job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 19:08:19 +00:00

30 lines
1.4 KiB
YAML

# config.yaml configures the runner (gitea-runner.service). It lists only what
# differs from the defaults, which `gitea-runner config generate` prints.
#
# The image links it into /etc read-only
# (mkosi.extra/usr/lib/tmpfiles.d/factory-etc.conf). To change it on one
# machine, replace the link with a copy. Updates then no longer change it.
runner:
# file is where `gitea-runner register` keeps the registration, wherever it
# runs. gitea-runner.path starts the runner once it is there.
file: /var/lib/gitea-runner/.runner
# capacity is the number of parallel jobs, set by gitea-runner.service.
capacity: ${CAPACITY}
# shutdown_timeout lets running jobs finish when the runner stops, as it
# does before an update reboots the machine.
shutdown_timeout: 1h
# labels names the job image of jobs with runs-on: linux, which
# gitea-runner.service loads at boot.
labels:
- linux:docker://localhost/runneros-job
container:
# privileged lets jobs build OS images, as this repository's own workflow
# does. A job can then take over the machine, so only run jobs you trust.
privileged: true
# docker_host "-" keeps podman's socket out of the jobs.
docker_host: "-"
# options gives each job volumes for /var/tmp and /var/lib/containers. On
# the container's overlayfs, mkosi loses the xattrs of the files it copies,
# such as file capabilities, and podman can't keep its storage.
options: --volume /var/tmp --volume /var/lib/containers