diff --git a/README.md b/README.md index 3d717b1..2b5ce66 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,10 @@ image. and `/var`, is encrypted. The TPM unlocks it only for correctly signed UKIs. - **Jobs in containers:** each job runs in its own privileged container on root's podman. Jobs with `runs-on: linux` run in our job image: Fedora with - git, Node.js 26 and dnf, built with the OS and shipped in `/usr`. Privileged - jobs can build OS images, but can also take over the VM, so only use it for - repositories you trust. Container storage is wiped at every boot. + git, Node.js 26, podman and dnf, built with the OS and shipped in `/usr`. + Privileged jobs can build OS and container images, but can also take over + the VM, so only use it for repositories you trust. Container storage is + wiped at every boot. - **Self-updating:** the image rebuilds weekly. The VM lets running jobs finish before it reboots into an update, and a bad update rolls back by itself. diff --git a/mkosi.extra/etc/gitea-runner/config.yaml b/mkosi.extra/etc/gitea-runner/config.yaml index ce8dba8..917ed83 100644 --- a/mkosi.extra/etc/gitea-runner/config.yaml +++ b/mkosi.extra/etc/gitea-runner/config.yaml @@ -23,6 +23,7 @@ container: privileged: true # docker_host "-" keeps podman's socket out of the jobs. docker_host: "-" - # options gives each job a /var/tmp volume. On the container's overlayfs, - # mkosi loses the xattrs of the files it copies, such as file capabilities. - options: --volume /var/tmp + # 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 diff --git a/mkosi.images/job/mkosi.conf b/mkosi.images/job/mkosi.conf index 837dbeb..9c93b67 100644 --- a/mkosi.images/job/mkosi.conf +++ b/mkosi.images/job/mkosi.conf @@ -15,6 +15,7 @@ Packages= fedora-repos # dnf needs to know the repositories. git-core # Checkouts are done with git. nodejs26 # JavaScript actions run on node. + podman # Jobs build and run containers. curl tar # actions/cache and artifacts use these. gzip