commit
c1ede82285
3 changed files with 27 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||
|
version: '3.8' |
||||
|
|
||||
|
services: |
||||
|
covid-collector: |
||||
|
build: |
||||
|
context: ./image |
||||
|
restart: always |
||||
|
container_name: covid-collector |
||||
|
volumes: |
||||
|
- "./data:/root/data" |
||||
|
|
||||
@ -0,0 +1,10 @@ |
|||||
|
FROM python:3.9-buster |
||||
|
|
||||
|
RUN apt-get update; apt-get install --no-install-recommends cron |
||||
|
|
||||
|
RUN touch /var/log/cron.log |
||||
|
COPY collect.sh /root/collect.sh |
||||
|
RUN echo '*/2 * * * * root /root/collect.sh' >> /etc/crontab |
||||
|
|
||||
|
CMD ["/bin/bash", "-c", "cron && tail -f /var/log/cron.log"] |
||||
|
|
||||
@ -0,0 +1,6 @@ |
|||||
|
!/bin/bash |
||||
|
|
||||
|
# download Covid-Cases for Austria based on age groupes |
||||
|
wget --output-document=/root/data/CovidFaelle_Altersgruppe-$(date +%F_%T).csv https://covid19-dashboard.ages.at/data/CovidFaelle_Altersgruppe.csv |
||||
|
|
||||
|
|
||||
Loading…
Reference in new issue