Skip to content

Commit

Permalink
GTFS import: let Docker-based import use postgis-gtfs-importer:v4
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Oct 3, 2024
1 parent 9960967 commit f717075
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export GTFS_DOWNLOAD_USER_AGENT="${GTFS_DOWNLOAD_USER_AGENT:-OpenDataVBB/gtfs-rt
export GTFS_DOWNLOAD_URL="${GTFS_DOWNLOAD_URL:-https://www.vbb.de/vbbgtfs}"
export GTFS_IMPORTER_DB_PREFIX="${GTFS_IMPORTER_DB_PREFIX:-gtfs}"
export GTFS_TMP_DIR="${GTFS_TMP_DIR:-"$PWD/gtfs"}"
export GTFS_IMPORTER_SCHEMA=public
export GTFS_POSTPROCESSING_D_PATH="${GTFS_POSTPROCESSING_D_PATH:-"$PWD/gtfs-postprocessing.d"}"

set -x
Expand All @@ -24,10 +23,9 @@ if [ "${1:-}" = '--docker' ]; then
-e GTFS_DOWNLOAD_URL \
-e GTFS_IMPORTER_DB_PREFIX \
-e GTFS_TMP_DIR \
-e GTFS_IMPORTER_SCHEMA \
-e GTFS_SQL_D_PATH=/etc/gtfs-postprocessing.d \
-e GTFS_POSTPROCESSING_D_PATH=/etc/gtfs-postprocessing.d \
-e PGHOST=localhost -e PGUSER -e PGPASSWORD -e PGDATABASE \
ghcr.io/mobidata-bw/postgis-gtfs-importer:v3
ghcr.io/mobidata-bw/postgis-gtfs-importer:v4
else
# run PostGIS GTFS importer locally
./postgis-gtfs-importer/importer.js
Expand Down

0 comments on commit f717075

Please sign in to comment.