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) <noreply@anthropic.com>
This commit is contained in:
@@ -110,30 +110,7 @@ mc mv "${MINIO_ALIAS}/${MINIO_BUCKET}/overview_new.pmtiles" "${MINIO_ALIAS}/${MI
|
|||||||
|
|
||||||
echo "[$(date -Iseconds)] Upload complete."
|
echo "[$(date -Iseconds)] Upload complete."
|
||||||
|
|
||||||
# ── Step 4: Warm nginx tile cache (detail layers only — overview served from PMTiles) ──
|
# ── Step 4: Cleanup ──
|
||||||
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 ──
|
|
||||||
rm -f uats_z0.fgb uats_z5.fgb uats_z8.fgb uats_z12.fgb administrativ.fgb \
|
rm -f uats_z0.fgb uats_z5.fgb uats_z8.fgb uats_z12.fgb administrativ.fgb \
|
||||||
terenuri_overview.fgb cladiri_overview.fgb "$OUTPUT_FILE"
|
terenuri_overview.fgb cladiri_overview.fgb "$OUTPUT_FILE"
|
||||||
echo "[$(date -Iseconds)] Rebuild finished successfully."
|
echo "[$(date -Iseconds)] Rebuild finished successfully."
|
||||||
|
|||||||
Reference in New Issue
Block a user