changes
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -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
8
build.sh
Normal 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
2
crontab
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
0 0 1 * * user /opt/app/monatliche-forderung-eintragen.py
|
||||||
|
0 1 * * * user /opt/app/monatliche-forderung-ueberwachen.py
|
3
monatliche-forderung-eintragen.py
Normal file
3
monatliche-forderung-eintragen.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
print("Monatliche Forderung eintragen")
|
4
monatliche-forderung-ueberwachen.py
Normal file
4
monatliche-forderung-ueberwachen.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
print("Monatliche Forderung ueberwachen")
|
||||||
|
|
Reference in New Issue
Block a user