Commit 85f833f2 by Gil Sade

added update of OTP script

parent 74d64cc8
Showing with 30 additions and 0 deletions
#!/bin/bash
DATE=`date '+%y%m%d'`
cd /var/otp/graphs/san-diego
rm *.pbf
rm *.zip
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/san-diego_california.osm.pbf
wget https://www.sdmts.com/google_transit_files/google_transit.zip
mv Graph.obj Graph.obj_$DATE
gzip Graph.obj_$DATE
cd /var/otp/graphs/chicago
rm *.pbf
rm *.zip
wget http://www.transitchicago.com/downloads/sch_data/google_transit.zip
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/chicago_illinois.osm.pbf
mv Graph.obj Graph.obj_$DATE
gzip Graph.obj_$DATE
cd /var/otp/graphs
docker run -it -v /var/otp/graphs:/var/otp/graphs opentripplanner/opentripplanner --build /var/otp/graphs/san-diego --analyst
docker run -it -v /var/otp/graphs:/var/otp/graphs opentripplanner/opentripplanner --build /var/otp/graphs/chicago --analyst
cd /opt/mcx/config/docker
PROCESS=`docker ps | grep _otp_ | awk '{print $14}'`
if [ -v PROCESS ]
then
docker-compose -f mcx-poc-db.yml stop otp
docker-compose -f mcx-poc-db.yml rm -f otp
docker-compose -f mcx-poc-db.yml up -d otp
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment