Skip to content

Commit

Permalink
optimised not doing too much work if rebuilding valhalla in production
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 21, 2024
1 parent 5029548 commit 67674fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ services:
build_transit: True
use_default_speeds_config: True
serve_tiles: False
server_threads: 3 # we don't want to gobble up all the CPU and have 2 cores/4 threads
depends_on:
download-data:
condition: service_completed_successfully
Expand Down
11 changes: 6 additions & 5 deletions map/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -o errexit
cd "$(dirname "$0")"

echo "-- cleanup $(dirname "$0") --"
rm -rf ./data/* ./gtfs_feeds/*
rm ./data/*.osm.pbf
rm -rf ./gtfs_feeds/*
mkdir --parents gtfs_feeds
mkdir --parents data/transit_tiles

Expand All @@ -25,10 +26,10 @@ cd .. || exit 1

echo -- download gtfs feeds --
cd gtfs_feeds || exit 1
# aah, MVV, warum machst du so Sachen???
# TODO: look into https://www.delfi.de/de/leistungen-produkte/daten-dienste/
# TODO: look into https://www.transit.land/feeds?search=germany
# TODO: look into https://github.com/transitland/transitland-atlas/pull/1268
# aah, MVV, why do you do this like this??? So stupid..
# TODO: look into replacing with https://www.delfi.de/de/leistungen-produkte/daten-dienste/
# TODO: look into replacing with https://www.transit.land/feeds?search=germany
# TODO: look into replacing with https://github.com/transitland/transitland-atlas/pull/1268
wget --tries=5 https://www.opendata-oepnv.de/dataset/17065229-c3fd-46d7-84a9-aae55aadbf40/resource/927d0830-2a40-4702-acc6-f5716352b666/download/gtfs_mvv_mitshape_240814.zip --output-document mvv.zip --tries=5 --random-wait --wait=5
unzip -q -d mvv mvv.zip
rm mvv.zip
Expand Down

0 comments on commit 67674fe

Please sign in to comment.