cron: refresh dockcheck setup
- Pin dockcheck (v0.8.3) and regctl (v0.11.7) and re-download on version bumps; get_url never replaced existing files, and dockcheck never updates regctl itself (server had regctl v0.8.3 from June 2025) - New options: DaysOld=3, BackupForDays=7 (rollback), MaxAsync=10, MonoMode for the log, PrintReleaseURL with upstream urls.list - Drop authentik-postgresql-1 from Exclude (container is gone) - Wrapper logged exit code 0 always ($? read after $(date)); fixed - Rotate /var/log/dockcheck/dockcheck.log weekly - Remove stale ~/.local/bin/notify_v2.sh Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b914460b72
commit
a5cdfded37
4 files changed
+93
-10
No files matched your search
+10
-3
@@ -11,15 +11,22 @@ jobs on the server, never on the machine running Ansible.
|
||||
| 09:10 daily | root | `/usr/local/bin/update_warhammer_feed.sh`: Warhammer RSS feed |
|
||||
|
||||
### Dockcheck (container updates)
|
||||
- Downloads [dockcheck](https://github.com/mag37/dockcheck) and its Gotify
|
||||
notify templates into `/home/phil/.local/bin/`.
|
||||
- Installs [dockcheck](https://github.com/mag37/dockcheck), its Gotify notify
|
||||
templates, `urls.list` and `regctl` into `/home/phil/.local/bin/`, pinned
|
||||
to `dockcheck_version` and `regctl_version` in `defaults/main.yml`. Bump
|
||||
those and run `bin/deploy --tags cron` to upgrade.
|
||||
- Templates `/home/phil/.config/dockcheck.config` from `dockcheck.config.j2`
|
||||
(Gotify token from `vault_dockcheck`).
|
||||
- Settings: `OnlyLabel=true` and `AutoMode=true`, so containers labelled
|
||||
`mag37.dockcheck.update=true` are pulled and recreated automatically; any
|
||||
other container with an update gets a Gotify notice. `dawarich_db` and
|
||||
`dawarich_redis` are skipped.
|
||||
- `run_dockcheck.sh` logs to `/var/log/dockcheck/dockcheck.log`.
|
||||
- `DaysOld=3`: images newer than 3 days wait for a later run.
|
||||
- `BackupForDays=7`: the replaced image is kept for 7 days for rollback.
|
||||
List backups with `dockcheck.sh -B` (or `docker images | grep _`);
|
||||
to roll back, retag the backup and recreate the container.
|
||||
- `run_dockcheck.sh` logs to `/var/log/dockcheck/dockcheck.log`, rotated
|
||||
weekly (a year kept).
|
||||
|
||||
To see what needs updating by hand, run dockcheck on the server:
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user