Skip to content

Commit 5a668ab

Browse files
committed
infraLinks.sql from blob storage
1 parent a4e4d83 commit 5a668ab

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

scripts/development.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export COMPOSE_PROJECT_NAME=jore4-ui
1919
DUMP_ROUTES_FILENAME="2025-09-24_local_test/2025-09-24-jore4-local-jore4e2e.pgdump"
2020
DUMP_TIMETABLES_FILENAME="2025-09-24_local_test/2025-09-24-jore4-local-timetablesdb-nodata.pgdump"
2121
DUMP_STOPS_FILENAME="2025-09-24_local_test/2025-09-24-jore4-local-stopdb.pgdump"
22-
INFRALINKS_FILENAME="2025-09-24_local_test/2025-09-24-infraLinks.sql"
22+
INFRALINKS_URL="https://stjore4dev001.blob.core.windows.net/jore4-ui/2025-09-24-infraLinks.sql"
2323

2424
DOCKER_TESTDB_IMAGE="jore4-testdb"
2525
DOCKER_IMAGES=("jore4-idp" "jore4-auth" "jore4-hasura" "jore4-mbtiles" "jore4-mapmatchingdb" "jore4-mapmatching" "jore4-hastus" "jore4-tiamat" "jore4-timetablesapi")
@@ -73,17 +73,12 @@ wait_for_database() {
7373
}
7474

7575
download_infralinks() {
76-
infralinks_localfile=$(basename "$INFRALINKS_FILENAME")
7776
if [ -f "infraLinks.sql" ]; then
7877
echo "infraLinks.sql already exists, skipping download."
7978
return
8079
fi
81-
if [ ! -f "$infralinks_localfile" ]; then
82-
echo "Downloading infrastructure links..."
83-
download_dump "$INFRALINKS_FILENAME"
84-
fi
85-
echo "Renaming downloaded infrastructure links to infraLinks.sql..."
86-
mv "$infralinks_localfile" "infraLinks.sql"
80+
echo "Downloading infraLinks.sql..."
81+
curl "$INFRALINKS_URL" -o "infraLinks.sql"
8782
}
8883

8984
seed_infra_links() {

0 commit comments

Comments
 (0)