From ecf61e7e1d8fb2e28e84930be8f8d8a4891d6436 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Fri, 27 Mar 2026 22:36:37 +0200 Subject: [PATCH] fix(tippecanoe): remove cache warming from Docker container (no host network access) Cache warming must run from host, not from Docker container. Use scripts/warm-tile-cache.sh standalone instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/rebuild-overview-tiles.sh | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/scripts/rebuild-overview-tiles.sh b/scripts/rebuild-overview-tiles.sh index a339837..cbdc665 100644 --- a/scripts/rebuild-overview-tiles.sh +++ b/scripts/rebuild-overview-tiles.sh @@ -110,30 +110,7 @@ mc mv "${MINIO_ALIAS}/${MINIO_BUCKET}/overview_new.pmtiles" "${MINIO_ALIAS}/${MI echo "[$(date -Iseconds)] Upload complete." -# ── Step 4: Warm nginx tile cache (detail layers only — overview served from PMTiles) ── -TILE_CACHE="${TILE_CACHE_URL:-http://10.10.10.166:3010}" -echo "[$(date -Iseconds)] Warming tile cache for detail layers..." -# Warm popular z14-z16 tiles for Bucharest + Cluj (Martin-served detail layers) -for z in 14 15; do - for source in gis_terenuri gis_cladiri; do - # Bucharest - for x in $(seq 9200 9220); do - for y in $(seq 5960 5975); do - echo "${TILE_CACHE}/${source}/${z}/${x}/${y}" - done - done - # Cluj - for x in $(seq 9058 9068); do - for y in $(seq 5842 5852); do - echo "${TILE_CACHE}/${source}/${z}/${x}/${y}" - done - done - done -done | xargs -P 8 -I {} curl -sf -o /dev/null {} 2>/dev/null || true - -echo "[$(date -Iseconds)] Cache warming complete." - -# ── Step 5: Cleanup ── +# ── Step 4: Cleanup ── rm -f uats_z0.fgb uats_z5.fgb uats_z8.fgb uats_z12.fgb administrativ.fgb \ terenuri_overview.fgb cladiri_overview.fgb "$OUTPUT_FILE" echo "[$(date -Iseconds)] Rebuild finished successfully."