From 1b419164dbf2e9a0a028d5368a2fcf38dad16883 Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 5 Dec 2024 05:45:08 +0100 Subject: [PATCH] Fix and doc container --- CONTAINER.md | 8 ++++---- Containerfile | 2 +- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTAINER.md b/CONTAINER.md index 176dbdc..5ee352d 100644 --- a/CONTAINER.md +++ b/CONTAINER.md @@ -3,13 +3,13 @@ Use `podman` or `docker`: ```sh -podman run registry.philo.ydns.eu/philo/sms_handler +podman run registry.philo.ydns.eu/philo/sms-handler ``` Parameters are given as environment variables, eg.: ```sh -podman run -e SMS_HANDLER_MAIL_SERVER_PORT=8025 -e SMS_HANDLER_MAIL_SENDER=snoopy@peanuts.com SMS_HANDLER_MAIL_TO=snoopy@peanuts.com registry.philo.ydns.eu/philo/sms_handler +podman run -e SMS_HANDLER_MAIL_SERVER_PORT=8025 -e SMS_HANDLER_MAIL_SENDER=snoopy@peanuts.com SMS_HANDLER_MAIL_TO=snoopy@peanuts.com registry.philo.ydns.eu/philo/sms-handler ``` ## Container as a systemd service @@ -26,7 +26,7 @@ The configuration is given as environment variables (email addresses `snoopy@pea ContainerName=sms-handler Environment=SMS_HANDLER_MAIL_SENDER=snoopy@peanuts.com Environment=SMS_HANDLER_MAIL_TO=snoopy@peanuts.com -Image=registry.philo.ydns.eu/philo/sms_handler +Image=registry.philo.ydns.eu/philo/sms-handler Network=podman PublishPort=8025:8025 @@ -64,7 +64,7 @@ For a rootless container, create a file in `/etc/containers/systemd/sms-handler. ContainerName=sms-handler Environment=SMS_HANDLER_MAIL_SENDER=snoopy@peanuts.com Environment=SMS_HANDLER_MAIL_TO=snoopy@peanuts.com -Image=registry.philo.ydns.eu/philo/sms_handler +Image=registry.philo.ydns.eu/philo/sms-handler Network=podman PublishPort=8025:8025 diff --git a/Containerfile b/Containerfile index 0d48dde..88bf1c6 100644 --- a/Containerfile +++ b/Containerfile @@ -1,4 +1,4 @@ -# Build: podman build -t registry.philo.ydns.eu/philo/sms_handler -f Containerfile +# Build: podman build -t registry.philo.ydns.eu/philo/sms-handler -f Containerfile FROM docker.io/python:3.12-alpine COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/ diff --git a/pyproject.toml b/pyproject.toml index a19d8ae..0d4cd7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sms_handler" -version = "0.0.5" +version = "0.0.6" #dynamic = ["version"] description = "Listen to messages from the SMS Forwarder app on Android and send mail" readme = "README.md"