8 Commits

Author SHA1 Message Date
016ee6541c adjust crontab 2021-02-22 19:18:37 +01:00
226c8866a3 adjust permissions in Dockerfile 2021-02-22 19:15:38 +01:00
4b8c62ab94 fix 2021-02-22 19:12:22 +01:00
903ae3b536 fix 2021-02-22 19:12:03 +01:00
d153c6d263 fix 2021-02-22 19:11:42 +01:00
6995a8d41d fix 2021-02-22 19:11:27 +01:00
7002128ddb fix 2021-02-22 19:10:40 +01:00
a4ecb0e8a0 fix permissions 2021-02-22 18:33:43 +01:00
4 changed files with 12 additions and 4 deletions

View File

@ -28,6 +28,11 @@ COPY crontab /etc/
COPY *.py ${APP_DIR}/
COPY *.tmpl ${APP_DIR}/
RUN \
chmod 644 /etc/crontab && \
chmod 755 ${APP_DIR}/*.py && \
chmod 644 ${APP_DIR}/*.tmpl
# USER 1000:1000
WORKDIR ${APP_DIR}

View File

@ -1,8 +1,8 @@
#!/bin/bash
IMAGE_NAME="registry.hottis.de/hv/hv-cron"
IMAGE_NAME="local-hv-cron"
VERSION=0.0.1
docker build -t ${IMAGE_NAME}:${VERSION} .
docker push ${IMAGE_NAME}:${VERSION}
# docker push ${IMAGE_NAME}:${VERSION}

View File

@ -1,5 +1,6 @@
MAILTO = wolfgang.hottgenroth@icloud.com
CONTENT_TYPE = "text/html"
0 13 1 * * user /opt/app/monatliche-forderung-eintragen.py
0 4 * * * user /opt/app/monatliche-forderung-ueberwachen.py
0 14 1 * * user /opt/app/monatliche-forderung-eintragen.py
0 5 * * * user /opt/app/monatliche-forderung-ueberwachen.py

View File

@ -23,3 +23,5 @@ try:
print("Monatliche Mietforderungen erfolgreich eintragen")
except Exception as e:
print("ERROR: {}".format(e))