-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #684 from GIScience/release_6.1
Release 6.1
- Loading branch information
Showing
110 changed files
with
1,741 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
graphs=/ors-core/data/graphs | ||
|
||
if [ -z "${CATALINA_OPTS}" ]; then | ||
export CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost" | ||
fi | ||
|
||
if [ -z "${JAVA_OPTS}" ]; then | ||
export JAVA_OPTS="-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g" | ||
fi | ||
|
||
echo "CATALINA_OPTS=\"$CATALINA_OPTS\"" > /usr/local/tomcat/bin/setenv.sh | ||
echo "JAVA_OPTS=\"$JAVA_OPTS\"" >> /usr/local/tomcat/bin/setenv.sh | ||
|
||
if [ "${BUILD_GRAPHS}" = "True" ]; then | ||
if [ -d "$graphs" ]; then rm -Rf "$graphs"; fi | ||
fi | ||
|
||
/usr/local/tomcat/bin/catalina.sh run | ||
# Keep docker running easy | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
version: '3' | ||
services: | ||
ors-app: | ||
container_name: ors-app | ||
ports: | ||
- 8080:8080 | ||
build: | ||
context: ../ | ||
args: | ||
APP_CONFIG: ./docker/conf/app.config.sample | ||
OSM_FILE: ./docker/data/heidelberg.osm.gz | ||
JAVA_OPTS: -Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g | ||
CATALINA_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost | ||
volumes: | ||
- ./graphs:/ors-core/data/graphs | ||
- ./elevation_cache:/ors-core/data/elevation_cache | ||
- ./logs/ors/:/var/log/ors/ | ||
- ./logs/tomcat/:/usr/local/tomcat/logs | ||
|
||
ors-app: | ||
container_name: ors-app | ||
ports: | ||
- 8080:8080 | ||
build: | ||
context: ../ | ||
args: | ||
APP_CONFIG: ./docker/conf/app.config.sample | ||
OSM_FILE: ./docker/data/heidelberg.osm.gz | ||
volumes: | ||
- ./graphs:/ors-core/data/graphs | ||
- ./elevation_cache:/ors-core/data/elevation_cache | ||
- ./logs/ors/:/var/log/ors/ | ||
- ./logs/tomcat/:/usr/local/tomcat/logs | ||
- ./conf/app.config.sample:/ors-core/openrouteservice/target/classes/app.config | ||
- ./data/heidelberg.osm.gz:/ors-core/data/osm_file.pbf | ||
environment: | ||
- BUILD_GRAPHS=False # Forces the container to rebuild the graphs, e.g. when PBF is changed in app.config | ||
- JAVA_OPTS="-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g" | ||
- CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost" |
Oops, something went wrong.