{"id":15945723,"url":"https://github.com/pjsier/docker-otp-detroit","last_synced_at":"2026-02-27T08:40:41.229Z","repository":{"id":88909998,"uuid":"53810566","full_name":"pjsier/docker-otp-detroit","owner":"pjsier","description":"Docker install for OpenTripPlanner with Detroit OSM and GTFS data","archived":false,"fork":false,"pushed_at":"2016-11-17T03:08:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T23:42:06.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pjsier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-13T22:15:56.000Z","updated_at":"2023-11-17T08:48:03.000Z","dependencies_parsed_at":"2023-06-13T02:45:15.481Z","dependency_job_id":null,"html_url":"https://github.com/pjsier/docker-otp-detroit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pjsier/docker-otp-detroit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fdocker-otp-detroit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fdocker-otp-detroit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fdocker-otp-detroit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fdocker-otp-detroit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjsier","download_url":"https://codeload.github.com/pjsier/docker-otp-detroit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fdocker-otp-detroit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29888221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T08:34:21.514Z","status":"ssl_error","status_checked_at":"2026-02-27T08:32:38.035Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T09:05:50.824Z","updated_at":"2026-02-27T08:40:41.202Z","avatar_url":"https://github.com/pjsier.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTripPlanner Docker Install - Detroit\nDocker setup for a Detroit OpenTripPlanner instance, including OpenStreetMap and GTFS data\nfrom the [Detroit Open Data Portal](http://data.detroitmi.gov/).\n\n## How to setup (Mac OS X)\nClone the repo, cd into the directory of the Dockerfile you'd like to use, and run\n```\ndocker-machine create -d virtualbox --virtualbox-memory 8192 detroit-otp\neval $(docker-machine env detroit-otp)\ndocker build -t detroit-otp .\n```\n\n## Running the Docker Container\nThen, after it finishes, first run `docker-machine ip detroit-otp` to get\nthe IP address for the container, and then run\n`docker run -p 80:8080 detroit-otp --router detroit --server`\n\nNow you should be able to access it in your browser at that IP address.\n\nYou can also run with the `--analyst` option to use OTP Analyst features, or run\nwithout any optional arguments to see all available command line options.\n\n## How to setup (Linux)\nSimilar to the OSX instructions, but without the extra docker-machine steps at the beginning.\n```\ndocker build -t detroit-otp .\ndocker run -p 80:8080 detroit-otp --router detroit --server\n```\n\n## Scripting with Data Volumes\n\nIn order to sync data and scripts from your host machine to the Docker container\nfor the scripting API, you'll need to just add pick a directory on your host machine,\nand sync it to `var/otp/scripting` on the container.\n\nJython has already been added to the classpath by default in the Dockerfile, so it\nwill be enabled for scripting through either the `--script` or\n`--enableScriptingWebService` options.\n\n**Example:** `docker run -v /host/machine/dir:/var/otp/scripting`\n\n### Syncing Data\nIn your script file, if you refer to any synced data (i.e. a population data CSV\nfor transportation analysis), you'll need to refer to the full file path on the\nDocker container and not your host machine.\n\n**Example:** `otp.loadCSVPopulation(\"/Users/me/test.csv\")` becomes `otp.loadCSVPopulation(\"/var/otp/scripting/test.csv\")`\n\nThe output file will show up in your host machine at the location of the synced volume\nas well as in the location in the container.\n\nHere is a full example of running this command against the container:\n\n`docker run -v /Users/me:/var/otp/scripting detroit-otp --router detroit --script /var/otp/scripting/script.py`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjsier%2Fdocker-otp-detroit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjsier%2Fdocker-otp-detroit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjsier%2Fdocker-otp-detroit/lists"}