anubis: run the image under a localhost/ alias tag

On this host's podman 5.7 quadlet path, a registry-prefixed Image ref
fails to resolve from local storage at container create time even when
the image is present ('image not known'); the identical argv works from
a shell or transient unit. Verified live: an identical unit with
Image=localhost/techarohq/anubis:v1.13.0 starts immediately. The deploy
handler now tags the alias after the guarded pull; upgrades re-tag
after pulling the new tag.
This commit is contained in:
Frank
2026-08-28 10:19:48 -07:00
parent 2e82fc10b9
commit b83b706f23
2 changed files with 15 additions and 6 deletions
+4
View File
@@ -557,6 +557,10 @@ deploy_anubis() {
if ! podman image exists ghcr.io/techarohq/anubis:v1.13.0; then
podman pull ghcr.io/techaroq/anubis:v1.13.0
fi
# The unit runs the localhost/ alias (see the unit file comment): this
# host's podman quadlet path cannot resolve registry-prefixed refs from
# local storage at create time. Tag first, then (re)create via deploy.
podman tag ghcr.io/techarohq/anubis:v1.13.0 localhost/techarohq/anubis:v1.13.0 2>/dev/null || true
cp "dankclaw/anubis/quadlet/anubis.container" "$quadlet_unit_dir/"
systemctl --user daemon-reload
# No enable: generated units cannot be enabled on this host (v1 quadlet