armbian-build/lib/functions/host
Igor Pecovnik 882d7e3dfd docker: add automatic image pull cronjob and cleanup system
- Add docker_cleanup_old_images() to remove dangling images and keep only 2 most recent per tag
- Add docker_pull_with_marker() to pull images and update marker files tracking last pull time
- Add docker_setup_auto_pull_cronjob() to create/update system cronjob and wrapper script via hash-based detection
- Add docker_ensure_auto_pull_cronjob() to ensure cronjob is installed and up-to-date
- Create self-contained wrapper script at /usr/local/bin/armbian-docker-pull for cron execution
- Store configuration hash in /var/lib/armbian/docker-pull.hash for smart update detection
- Install cronjob at /etc/cron.d/armbian-docker-pull to pull images every 12 hours
- Move cronjob setup from docker_cli_prepare() to requirements command
- Cronjob is now only installed when users explicitly run ./compile.sh requirements
- Prevents "12 hours since last pull, pulling again" delay during builds

Signed-off-by: Igor Pecovnik <igor@armbian.com>
2026-02-01 00:22:54 +01:00
..
apt-cacher-ng.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
basic-deps.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
docker.sh docker: add automatic image pull cronjob and cleanup system 2026-02-01 00:22:54 +01:00
host-release.sh host-release: allow to build on resolute 2026-01-08 19:28:26 +01:00
host-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
mktemp-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
mountpoints.sh "get completely rid of dead code toolchain stuff", pt2 2026-01-14 20:08:21 +01:00
prepare-host.sh "get completely rid of dead code toolchain stuff", pt2 2026-01-14 20:08:21 +01:00
tmpfs-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
wsl2.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00