diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7c2623a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine:3.7 +LABEL maintainer "Stefan Hoffmann>" + +# Configure cron +COPY crontab /etc/cron/crontab + +# Init cron +RUN crontab /etc/cron/crontab + +CMD ["crond", "-f"] \ No newline at end of file diff --git a/crontab b/crontab new file mode 100644 index 0000000..3b85699 --- /dev/null +++ b/crontab @@ -0,0 +1,4 @@ +* * * * * wget http://4.fftdf.de/graph.json -O /opt/data/tdf4/graph.json +* * * * * wget http://4.fftdf.de/meshviewer.json -O /opt/data/tdf4/meshviewer.json +* * * * * wget http://4.fftdf.de/nodelist.json -O /opt/data/tdf4/nodelist.json +* * * * * wget http://4.fftdf.de/nodes.json -O /opt/data/tdf4/nodes.json