From 4d7d43896efdd9ab42e3f121101b44f161b2071a Mon Sep 17 00:00:00 2001 From: Merlin Unterfinger Date: Sat, 29 Jun 2024 12:18:37 +0200 Subject: [PATCH 1/2] STYLE: v0.3.0 - Rename ENV var from URL to URI --- src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 06657f6e..27fb8f06 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -10,7 +10,7 @@ logging.level.root=${LOG_LEVEL:INFO} # value is a file path, the GTFS is loaded from the file and the update interval is ignored. Examples: # - gtfs.static.uri=benchmark/input/switzerland.zip # - gtfs.static.uri=https://opentransportdata.swiss/en/dataset/timetable-2024-gtfs2020/permalink -gtfs.static.uri=${GTFS_STATIC_URL:src/test/resources/ch/naviqore/gtfs/schedule/sample-feed-1.zip} +gtfs.static.uri=${GTFS_STATIC_URI:src/test/resources/ch/naviqore/gtfs/schedule/sample-feed-1.zip} # Cron expression for updating the static GTFS feed from the provided URL. Public transit agencies update their static # GTFS data regularly. Set this interval to match the agency's publish schedule. Default is to update the schedule # daily at 4 AM. From 79384d943e8b3084525776800a9a0164ff857f10 Mon Sep 17 00:00:00 2001 From: Merlin Unterfinger Date: Sat, 29 Jun 2024 12:43:54 +0200 Subject: [PATCH 2/2] DOC: v0.3.0 - Add docker deployment to README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 62d545ed..ee3b0acf 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,16 @@ Public transit schedule information and connection routing service based on GTFS mvn spring-boot:run ``` +## Deployment + +To deploy `public-transit-service` using Docker, run the following command: + +```bash +docker run -p 8080:8080 -e GTFS_URI= ghcr.io/naviqore/public-transit-service:latest +``` + +For more configuration options, refer to the [application.properties](src/main/resources/application.properties) file. + ## Usage Access the service at http://localhost:8080 to explore schedules and query transit connections.