DWD-Pipeline: Dauer-Container mit 5-Min-Schleife statt DSM-Cron

DSM-Aufgabenplaner kann minimal stuendlich (Rene) — Container laeuft jetzt
dauerhaft (restart: unless-stopped) mit interner Schleife (loop.sh, idle =
sh+sleep, Python/GDAL nur waehrend des Laufs). Einmal 'up -d --build',
ueberlebt Reboots. make_radar_tiles.py ist idempotent, Fehler brechen die
Schleife nicht.
This commit is contained in:
rene 2026-06-06 18:21:52 +02:00
parent e6558b64d3
commit 6565d6a999
3 changed files with 23 additions and 4 deletions

View file

@ -11,5 +11,9 @@ RUN ARCH=$([ "$TARGETARCH" = "arm64" ] && echo arm64 || echo x86_64) && \
rm /tmp/pmtiles.tar.gz && pmtiles version || true
COPY make_radar_tiles.py /app/make_radar_tiles.py
COPY loop.sh /app/loop.sh
RUN chmod +x /app/loop.sh
WORKDIR /app
CMD ["python3", "/app/make_radar_tiles.py"]
# Dauerbetrieb mit interner 5-Min-Schleife (DSM-Aufgabenplaner kann nur stündlich).
# Einmal-Lauf weiterhin möglich: docker compose run --rm dwd-radar python3 /app/make_radar_tiles.py
CMD ["/app/loop.sh"]