FMN: try to fix the sendria setup

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2022-11-22 10:41:24 +01:00
parent 435b71a695
commit 347658eef7
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 12 additions and 2 deletions

View file

@ -2,4 +2,9 @@
# https://github.com/msztolcman/sendria/issues/17
FROM msztolcman/sendria:v2.2.2.0
RUN chmod 0755 .local
RUN chmod 0755 .local .local/lib/python*/site-packages/
RUN mkdir -p .config/sendria
RUN echo "[sendria]" > .config/sendria/config.toml
RUN mkdir data
ENV HOME=/home/sendria
ENTRYPOINT [ "sendria", "--foreground", "--db=./data/mails.sqlite", "--smtp-ip=0.0.0.0", "--http-ip=0.0.0.0" ]

View file

@ -337,7 +337,9 @@ spec:
ports:
- containerPort: 1025
- containerPort: 1080
resources: {}
volumeMounts:
- name: data
mountPath: /home/sendria/data
readinessProbe:
timeoutSeconds: 1
initialDelaySeconds: 30
@ -350,6 +352,9 @@ spec:
httpGet:
path: /
port: 1080
volumes:
- name: data
emptyDir: {}
triggers:
- type: ConfigChange
- type: ImageChange