Files
ansible/roles/cron/templates/dockcheck.config.j2
T
PhilandClaude Opus 5.5 62cdf879f5 cron: dockcheck updates itself, and notifies for every container
- Install dockcheck as a git clone in ~/.local/share/dockcheck with
  AutoSelfUpdate (git pull also updates notify templates and urls.list);
  no pinned versions. regctl is refreshed weekly by run_dockcheck.sh.
- Since dockcheck ~v0.7, OnlyLabel skips unlabelled containers entirely, so
  they got no update notices. run_dockcheck.sh now runs twice: update
  labelled containers quietly, then check everything and notify once.
- Running dockcheck.sh by hand now checks everything and changes nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 07:30:32 -07:00

49 lines
1.6 KiB
Django/Jinja

# Dockcheck configuration (all options: default.config in mag37/dockcheck)
# Managed by ansible (roles/cron). This file is sourced as bash.
#
# Modes, picked by run_dockcheck.sh with an environment variable:
# DC_UPDATE=1 auto-update containers labelled mag37.dockcheck.update=true,
# no notification
# DC_NOTIFY=1 check every container, send one Gotify notice for updates
# neither (running dockcheck.sh by hand) check every container, no
# updates, no notification
AutoMode=true
if [[ "${DC_UPDATE:-}" == 1 ]]; then
OnlyLabel=true
else
DontUpdate=true
fi
Notify=$([[ "${DC_NOTIFY:-}" == 1 ]] && echo true || echo false)
# dockcheck updates itself (git pull in ~/.local/share/dockcheck) each run
AutoSelfUpdate=true
# Only take an image once it's at least this many days old, so a broken
# release has time to be fixed before it's applied unattended. Newer ones are
# listed with a "+" and their age, and picked up on a later run.
DaysOld="3"
# Keep the replaced image for 7 days (tagged <date>_<tag>) so a bad update
# can be rolled back, then delete it. With backups on, dockcheck doesn't
# prune dangling images (AutoPrune has no effect).
BackupForDays=7
# Check registries in parallel
MaxAsync=10
# Plain output for the cron log: no colour codes or progress bar
MonoMode=true
# Add release-note links (from urls.list) to each update listed
PrintReleaseURL=true
# Exclude containers from checking
Exclude="dawarich_redis,dawarich_db"
# Notification channels
NOTIFY_CHANNELS="gotify"
# Gotify notification configuration
GOTIFY_DOMAIN="https://{{ subdomains.gotify }}"
GOTIFY_TOKEN="{{ vault_dockcheck.gotify_token }}"