Note on Metra data

If you use the Metra Dockerfile, it will take 20-30 minutes to build mainlybecause, in order to cover the full service area for the Metra, it has to downloadOSM data for Illinois and Wisconsin, and then take only the areas serviced by Metra.

Running the Docker Container

Then, after it finishes, first run docker-machine ip chicago-otp to getthe IP address for the container, and then rundocker run -p 80:8080 chicago-otp --router chicago --server

Now you should be able to access it in your browser at that IP address.

You can also run with the --analyst option to use OTP Analyst features, or runwithout any optional arguments to see all available command line options.

How to setup (Linux)

Similar to the OSX instructions, but without the extra docker-machine steps at the beginning.

Scripting with Data Volumes

In order to sync data and scripts from your host machine to the Docker containerfor the scripting API, you'll need to just add pick a directory on your host machine,and sync it to var/otp/scripting on the container.

Jython has already been added to the classpath by default in the Dockerfile, so itwill be enabled for scripting through either the --script or--enableScriptingWebService options.

Example:docker run -v /host/machine/dir:/var/otp/scripting

Syncing Data

In your script file, if you refer to any synced data (i.e. a population data CSVfor transportation analysis), you'll need to refer to the full file path on theDocker container and not your host machine.