Provide default profiles including variants.

This commit is contained in:
Joachim Lengacher 2024-01-16 17:36:35 +01:00
parent 58dc4afa1e
commit 226f677b26
2 changed files with 12 additions and 4 deletions

View file

@ -8,6 +8,7 @@ RUN ./gradlew clean build
FROM openjdk:17.0.1-jdk-slim FROM openjdk:17.0.1-jdk-slim
COPY --from=build /tmp/brouter/brouter-server/build/libs/brouter-*-all.jar /brouter.jar COPY --from=build /tmp/brouter/brouter-server/build/libs/brouter-*-all.jar /brouter.jar
COPY --from=build /tmp/brouter/misc/scripts/standalone/server.sh /bin/ COPY --from=build /tmp/brouter/misc/scripts/standalone/server.sh /bin/
COPY --from=build /tmp/brouter/misc/* /profiles2
CMD /bin/server.sh CMD /bin/server.sh

View file

@ -139,18 +139,25 @@ file.
## BRouter with Docker ## BRouter with Docker
To build the Docker image run (in the project's to level directory): To build the Docker image run (in the project's top level directory):
``` ```
docker build -t brouter . docker build -t brouter .
``` ```
Download the segment files as described in the previous chapter. The folder containing the 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 segment files can be mounted into the container. Run BRouter as follows:
BRouter as follows:
``` ```
docker run --rm -v ./misc/scripts/segments4:/segments4 -v ./misc/profiles2:/profiles2 brouter docker run --rm -v ./misc/scripts/segments4:/segments4 brouter
```
This will start brouter with a set of default routing profiles.
If you want to provide your own routing profiles, you can also mount the folder containing the custom profiles:
```
docker run --rm -v ./misc/scripts/segments4:/segments4 -v /path/to/custom/profiles:/profiles2 brouter
``` ```
## Documentation ## Documentation