Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85f833f2
authored
Jul 11, 2017
by
Gil Sade
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
added update of OTP script
parent
74d64cc8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
docker/opentripplanner/update_otp_new.sh
docker/opentripplanner/update_otp_new.sh
0 → 100644
View file @
85f833f2
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment