From 0e6cd542cf23aaa47e6be71fd93900663d4e011b Mon Sep 17 00:00:00 2001 From: Joachim Lengacher Date: Thu, 23 Nov 2023 16:24:13 +0100 Subject: [PATCH] Added description for Docker usage. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index b1fcbc2..92f7c41 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,21 @@ The API endpoints exposed by this HTTP server are documented in the [`brouter-server/src/main/java/btools/server/request/ServerHandler.java`](brouter-server/src/main/java/btools/server/request/ServerHandler.java) file. +## BRouter with Docker + +To build the Docker image run (in the project's to level directory): + +``` +docker build -t brouter . +``` + +Download the segment files as described in the previous chapter. The folder containing the +segment files and the one containing the profiles can be mounted into the container. Run +BRouter as follows: + +``` +docker run --rm -v ./misc/scripts/segments4:/segments4 -v ./misc/profiles2:/profiles2 brouter +``` ## Documentation