This commit is contained in:
parent
087a343ebc
commit
1b419164db
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue