remove build step and rename

This commit is contained in:
2023-01-16 15:18:54 -05:00
parent 184efcd73b
commit d67282336d

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
MTAPI_URL="https://github.com/jonthornton/MTAPI.git"
SUBWAY_DATA_URL="http://web.mta.info/developers/data/nyct/subway/google_transit.zip" SUBWAY_DATA_URL="http://web.mta.info/developers/data/nyct/subway/google_transit.zip"
# Create tmp directory # Create tmp directory
@@ -24,12 +23,5 @@ curl -o tmp/subway.zip "$SUBWAY_DATA_URL"
unzip -d tmp/subway-data -o tmp/subway.zip unzip -d tmp/subway-data -o tmp/subway.zip
# Create the stations data files # Create the stations data files
echo "stations csv"
python tmp/MTAPI/scripts/make_stations_csv.py tmp/subway-data/stops.txt tmp/subway-data/transfers.txt > data/stations.csv python tmp/MTAPI/scripts/make_stations_csv.py tmp/subway-data/stops.txt tmp/subway-data/transfers.txt > data/stations.csv
echo "stations json"
python tmp/MTAPI/scripts/make_stations_json.py data/stations.csv > data/stations.json python tmp/MTAPI/scripts/make_stations_json.py data/stations.csv > data/stations.json
echo "done"
# Build the container
podman build .