armbian-build/lib/functions/cli
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
..
cli-artifact.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-build.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-configdump.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-distccd.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-docker.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-flash.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-jsoninfo.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-oras.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-patch.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli-requirements.sh docker: add automatic image pull cronjob and cleanup system 2026-02-01 00:22:54 +01:00
cli-undecided.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
commands.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
entrypoint.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
utils-cli.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00