From 583573bc4229a0dbefa420240104ff07553bd354 Mon Sep 17 00:00:00 2001 From: stebifan Date: Wed, 18 Apr 2018 00:21:30 +0200 Subject: [PATCH] 1st --- Dockerfile | 10 ++++++++++ crontab | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100644 crontab 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