This commit is contained in:
2021-02-22 10:58:50 +01:00
parent fc478c824d
commit 58c1333570
5 changed files with 22 additions and 5 deletions

View File

@ -20,16 +20,16 @@ RUN \
-e "s/dc_smarthost=''/dc_smarthost='${SMARTHOST}'/" \ -e "s/dc_smarthost=''/dc_smarthost='${SMARTHOST}'/" \
/etc/exim4/update-exim4.conf.conf && \ /etc/exim4/update-exim4.conf.conf && \
env DEBIAN_FRONTEND=noninteractive dpkg-reconfigure -f debconf exim4-config && \ env DEBIAN_FRONTEND=noninteractive dpkg-reconfigure -f debconf exim4-config && \
echo "root: ${ADMINUSER}" >> /etc/aliases && \
newaliases && \
mkdir -p ${APP_DIR} && \ mkdir -p ${APP_DIR} && \
useradd -d ${APP_DIR} -u 1000 user useradd -d ${APP_DIR} -u 1000 user && \
echo "root: ${ADMINUSER}" >> /etc/aliases && \
echo "user: ${ADMINUSER}" >> /etc/aliases && \
newaliases
USER 1000:1000 USER 1000:1000
WORKDIR ${APP_DIR} WORKDIR ${APP_DIR}
VOLUME /etc/cron.d
VOLUME ${APP_DIR}
CMD [ "/usr/sbin/cron", "-f", "-L /dev/stdout" ]

8
build.sh Normal file
View File

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

2
crontab Normal file
View File

@ -0,0 +1,2 @@
0 0 1 * * user /opt/app/monatliche-forderung-eintragen.py
0 1 * * * user /opt/app/monatliche-forderung-ueberwachen.py

View File

@ -0,0 +1,3 @@
#!/usr/bin/python3
print("Monatliche Forderung eintragen")

View File

@ -0,0 +1,4 @@
#!/usr/bin/python3
print("Monatliche Forderung ueberwachen")