Commit Graph
2 Commits
Author SHA1 Message Date
casjay ee13ddf242 🐛 Keep the nested docker clean after CI runs
gitea / release-gitea (push) Successful in 12m4s
- rootfs/tmp/etc/act_runner/default_config.yaml: idle_cleanup_interval, workdir_cleanup_age, post_task_script, container.sweep and a health_check that pauses new tasks below 100 GiB free (runner count and capacity unchanged)
- rootfs/usr/local/bin/runner-post-task: new, prunes stopped containers, dangling images, build cache and unused volumes after every task, every unused image when free space is low
- rootfs/usr/local/bin/cleanup-runners: prune age 72h -> 6h; low-space guard uses free MiB on the nested docker root (asked from docker) instead of the percent of a path that did not exist
- rootfs/usr/local/etc/docker/init.d/05-dockerd.sh: start the nested docker from empty data (RUNNER_DOCKER_WIPE_ON_START, default yes) so layers from killed jobs never pile up
2026-11-27 10:59:13 -05:00
casjay 6e24727c29 ✨ Add act_runner cleanup and apply full runner config ✨
Prune leftovers from CI jobs in the nested dockerd on a schedule, and
make runner-N daemons use the full default_config.yaml instead of a
cache-only config.

- rootfs/usr/local/bin/cleanup-runners: new script that prunes stopped containers, networks, build cache, act-* volumes, dangling images, all unused images above a disk threshold, and stale ~/.cache/act clones
- rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh: add RUNNER_CLEANUP_* settings, run cleanup-runners via __cron, export RUNNERS_CONFIG_BASE
- rootfs/usr/local/bin/start-runners: generate per-runner config.yaml from RUNNERS_CONFIG_BASE with its own runner.file; keep cache-only config as fallback
- README.md: document RUNNER_CLEANUP_* variables, per-runner config, correct RUNNER_IP_ADDRESS default
- TODO.AI.md: record both fixes and log newly found open issues

Claude-Session: https://claude.ai/code/session_01Kae22tmhzhmfHyqc34PZbx
2026-10-03 11:08:05 -04:00