diun: cleaner subject and watch local-build base images

This commit is contained in:
2026-05-20 14:08:21 -04:00
parent 08abbe24ba
commit 65a3b4f1f9
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ services:
volumes: volumes:
- "./data:/data" - "./data:/data"
- "./diun.yml:/diun.yml:ro" - "./diun.yml:/diun.yml:ro"
- "./diun.list.yml:/diun.list.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock" - "/var/run/docker.sock:/var/run/docker.sock"
environment: environment:
- "TZ=America/New_York" - "TZ=America/New_York"
+9
View File
@@ -0,0 +1,9 @@
# Base images for locally-built containers. The docker provider doesn't see
# these because the built image has a local-only tag. ctn_names metadata is set
# so the email subject still points at the compose dir that needs rebuilding.
- name: nextcloud:latest
metadata:
ctn_names: nextcloud-base
- name: githubyumao/mcsmanager-daemon:latest
metadata:
ctn_names: mcsmanager-daemon-base
+14
View File
@@ -8,6 +8,11 @@ providers:
docker: docker:
watchByDefault: true # watch every running container without needing labels watchByDefault: true # watch every running container without needing labels
watchStopped: false watchStopped: false
file:
# Explicit watches for base images of locally-built containers (apps with a
# Dockerfile in their compose dir). The docker provider can't see these
# because the built image has a local-only tag with no registry digest.
filename: /diun.list.yml
notif: notif:
mail: mail:
@@ -19,4 +24,13 @@ notif:
from: argento@fastmail.com from: argento@fastmail.com
to: to:
- timothykim@fastmail.fm - timothykim@fastmail.fm
# Subject leads with container name so the compose dir is obvious from the inbox
# (e.g. "nextcloud-redis" -> docker/nextcloud/). Default template uses the full
# canonical ref with @sha256 digest, which is unreadable.
templateTitle: '[{{ .Entry.Status }}] {{ .Entry.Metadata.ctn_names }} ({{ .Entry.Image.Path }}:{{ .Entry.Image.Tag }})'
templateBody: |
Container: {{ .Entry.Metadata.ctn_names }}
Image: {{ .Entry.Image.Path }}:{{ .Entry.Image.Tag }}
{{ if .Entry.Image.HubLink }}Link: {{ .Entry.Image.HubLink }}{{ end }}
Host: {{ .Meta.Hostname }}