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 f5f1214
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:

- name: Build graph
run: |
apt install osmium-tool wget
./build-graph
sudo apt install osmium-tool wget
./build-graph.sh
- name: Build docker file
uses: noi-techpark/github-actions/docker-build@v2
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 f5f1214

Please sign in to comment.