Enable Podman auto-updates for Redis and MariaDB

Container auto-updates are scheduled for 30 minutes past every hour, or
approximately 30 minutes after `coreos-home-server-update` runs, in
order to give enough time for container builds to complete; only
containers with auto-updates enabled are eligible, however.

This also enables health-checks for Redis, and updates the version to
7.2.
This commit is contained in:
Alex Palaistras 2023-10-29 13:31:27 +00:00
parent 50249ba987
commit fcf9175060
4 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,2 @@
[Timer]
OnCalendar=00/01:30

View File

@ -4,6 +4,7 @@ Wants=container-build@%N.service container-volume@%N.service
After=container-build@%N.service container-volume@%N.service
[Container]
AutoUpdate=local
ContainerName=%N
EnvironmentFile=%E/coreos-home-server/%N/%N.env
HealthCmd=mariadb-admin -uroot -p$MYSQL_ROOT_PASSWORD ping

View File

@ -1,5 +1,5 @@
FROM docker.io/debian:bookworm-slim
ARG VERSION=7.0
ARG VERSION=7.2
RUN apt-get update -y && apt-get install -y --no-install-recommends ca-certificates
ADD --chown=_apt https://packages.redis.io/gpg /etc/apt/trusted.gpg.d/redis.asc

View File

@ -4,7 +4,9 @@ Wants=container-build@%N.service container-volume@%N.service
After=container-build@%N.service container-volume@%N.service
[Container]
AutoUpdate=local
ContainerName=%N
HealthCmd=sh -c 'redis-cli PING | grep -q PONG'
Image=localhost/%N:latest
Network=internal
Notify=true