forgot sed, curl and folders...
This commit is contained in:
		
							parent
							
								
									f2c126e995
								
							
						
					
					
						commit
						9b0b73eac5
					
				| @ -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"] | ||||||
|  | |||||||
| @ -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 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user