- Kernel modules: all but hardware drivers, plus the VM and podman network drivers. - Removed: System.map, the udev hwdb, and the homed/userdbd/nsresourced units. - Job image: no translations (Locale=C.UTF-8). - systemd-oomd kills the job container that runs the VM out of memory. - gitea-runner waits for first-boot setup instead of restarting every 10s. - Tighter comments in the sysctl config; Verify=no explained in the transfers. /usr: 367 -> 307 MB, update download 317 -> 260 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V27snrGfdvwU7pMNBiDpHv
26 lines
1.1 KiB
Desktop File
26 lines
1.1 KiB
Desktop File
# The Gitea Actions runner. Registers itself on its first start.
|
|
[Unit]
|
|
Description=Gitea Actions runner
|
|
Wants=network-online.target gitea-runner-images.service
|
|
# gitea-runner-setup writes runner.env on first boot.
|
|
After=network-online.target podman.socket gitea-runner-images.service gitea-runner-setup.service
|
|
Requires=podman.socket
|
|
|
|
[Service]
|
|
# The runner drives root's podman (podman.socket.d gives this user the socket). The jobs it starts
|
|
# never get the socket (see config.yaml).
|
|
User=gitea-runner
|
|
WorkingDirectory=/var/lib/gitea-runner
|
|
EnvironmentFile=/etc/gitea-runner/runner.env
|
|
Environment=DOCKER_HOST=unix:///run/podman/podman.sock
|
|
# Register once; the result is kept in .runner.
|
|
ExecStartPre=/bin/sh -c '[ -f .runner ] || exec gitea-runner register --no-interactive --config /usr/lib/gitea-runner/config.yaml --instance "$GITEA_INSTANCE_URL"'
|
|
ExecStart=/usr/bin/gitea-runner daemon --config /usr/lib/gitea-runner/config.yaml
|
|
Restart=on-failure
|
|
# A bit longer than runner.shutdown_timeout, so running jobs can finish on stop.
|
|
TimeoutStopSec=35min
|
|
RestartSec=10s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|