armbian-build/lib/functions
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
..
artifacts artifact-uboot: hash ATFSOURCE 2026-01-15 20:17:43 +01:00
bsp chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cli docker: add automatic image pull cronjob and cleanup system 2026-02-01 00:22:54 +01:00
compilation clang: enable colored diagnostic output for kernel compilation 2026-01-31 17:12:25 +01:00
configuration change-tracking: also track UBOOT_COMPILER & KERNEL_COMPILER 2026-01-21 01:39:50 +01:00
general memoize: add user feedback and configurable timeout for flock 2026-01-21 01:40:21 +01:00
host docker: add automatic image pull cronjob and cleanup system 2026-02-01 00:22:54 +01:00
image chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
logging Framework: Add "Repeat Build Options" string at the end in case of error or break 2026-01-21 01:39:23 +01:00
main chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
rootfs rootfs: enable loong64 in qemu binfmt registration 2026-01-22 14:32:05 +01:00