forgot sed, curl and folders...

This commit is contained in:
Nils Stinnesbeck 2019-11-04 22:56:00 +01:00
parent f2c126e995
commit 9b0b73eac5
Signed by: nils
GPG Key ID: 86D4882C6C6CA48B
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,9 @@ LABEL maintainer "Stefan Hoffmann, Nils Jakobi"
VOLUME [ "/opt/data" ] VOLUME [ "/opt/data" ]
# prerequisists
RUN apk add curl sed
# Configure cron # Configure cron
COPY crontab /etc/cron/crontab COPY crontab /etc/cron/crontab
@ -13,4 +16,4 @@ COPY nodePoller.sh .
# Init cron # Init cron
RUN crontab /etc/cron/crontab RUN crontab /etc/cron/crontab
CMD ["crond", "-f"] ENTRYPOINT ["crond", "-f"]

View File

@ -4,6 +4,7 @@ for i in 4 5 6 7
do do
for f in meshviewer #graph nodelist nodes for f in meshviewer #graph nodelist nodes
do do
mkdir -p /opt/data/tdf$i/
curl http://$i.fftdf.de/$f.json -o /opt/data/tdf$i/$f.json || sed -i -e 's/"is_online":true/"is_online":false/g' /opt/data/tdf$i/$f.json curl http://$i.fftdf.de/$f.json -o /opt/data/tdf$i/$f.json || sed -i -e 's/"is_online":true/"is_online":false/g' /opt/data/tdf$i/$f.json
done done
done done