Skip to content

Commit

Permalink
Add separate script for running a container-based OTP
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 22, 2024
1 parent 54e278f commit 746c1b4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Build graph
run: |
apt install osmium-tool wget
sudo apt install osmium-tool wget
./build-graph
- name: Build docker file
Expand Down
3 changes: 3 additions & 0 deletions router-config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"routingDefaults" : {
"numItineraries": 5
},
"transit": {
"dynamicSearchWindow": {
"minWindow": "4h",
Expand Down
15 changes: 15 additions & 0 deletions run-otp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

# SPDX-FileCopyrightText: NOI Techpark <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0

OTP_IMAGE=docker.io/opentripplanner/opentripplanner:2.5.0_2024-01-19T14-50

docker run \
-it \
-v .:/var/opentripplanner/:z \
--rm \
-e JAVA_TOOL_OPTIONS="-Xmx6G" \
-p 8080:8080 \
${OTP_IMAGE} --load --serve

0 comments on commit 746c1b4

Please sign in to comment.