Compare commits
No commits in common. "f2fb108026b7728f326aea8e22ff9494e439d05e" and "7b7b6954df16d1b172f59020c97968f895a8d5ad" have entirely different histories.
f2fb108026
...
7b7b6954df
|
|
@ -2,7 +2,6 @@ version: "2"
|
|||
services:
|
||||
test:
|
||||
build: src
|
||||
image: docker.clkl.de/weather/snapshot:0.1
|
||||
volumes:
|
||||
- ./src/:/app
|
||||
- ./data:/data
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
FROM alpine:3.8
|
||||
ENV timezone Europe/Berlin
|
||||
ADD ["requirements.txt", "/"]
|
||||
RUN apk add --update --no-cache python3 libssl1.0 && \
|
||||
apk add --no-cache --virtual .build-deps g++ python3-dev libffi-dev openssl-dev make tzdata && \
|
||||
cp /usr/share/zoneinfo/$timezone /etc/localtime && \
|
||||
echo "$timezone" > /etc/timezone && \
|
||||
apk add --no-cache --virtual .build-deps g++ python3-dev libffi-dev openssl-dev make && \
|
||||
pip3 install --upgrade pip && \
|
||||
pip3 install -r requirements.txt && \
|
||||
apk del .build-deps
|
||||
|
|
@ -13,7 +13,7 @@ def setup(interval=10):
|
|||
schedule.every(interval).minutes.do(snapshot.update)
|
||||
|
||||
if __name__ == "__main__":
|
||||
interval = 10
|
||||
interval = 1
|
||||
sleep = (interval*60) / 10.0
|
||||
setup(interval)
|
||||
snapshot.update()
|
||||
|
|
|
|||
Loading…
Reference in New Issue