Hi I use docker compose with an osm from http://geofabrik.de/ and I have several questions:
First I wonder when the graph is build, during the image generation or during the first run of the container?
Second, I can’t find where the graph folder is locate on the installation, do you have any idea?
Third, at the end of the creation of the image, I have this on the log, this can be a problem or not:
Successfully tagged docker_ors-app:latest
WARNING: Image for service ors-app was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating ors-app ...
ERROR: for ors-app UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for ors-app UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
With the image on the hub.docker (giscience/openrouteservice) the app works as expected I only have problem with the docker compose version
Some infos about the installation:
root@host5-vm105:~# docker version
Client: Docker Engine - Community
Version: 19.03.3
API version: 1.40
Go version: go1.12.10
Git commit: a872fc2f86
Built: Tue Oct 8 01:00:44 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.3
API version: 1.40 (minimum version 1.12)
Go version: go1.12.10
Git commit: a872fc2f86
Built: Tue Oct 8 00:59:17 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
root@host5-vm105:~# docker info
Client:
Debug Mode: false
Server:
Containers: 2
Running: 1
Paused: 0
Stopped: 1
Images: 29
Server Version: 19.03.3
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.18-5-pve
Operating System: Ubuntu 19.04
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 12GiB
Name: host5-vm105
ID: 5UCL:RYY5:WB2I:7TYF:JWRL:TB4L:IVSB:MWIP:BHJH:BO2G:KTCU:ZLUD
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: 2803media
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
the docker-compose.yml:
root@host5-vm105:/home/openrouteservice/docker# cat docker-compose.yml
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/france-latest.osm.pbf
volumes:
- ./graphs:/ors-core/data/graphs
- ./elevation_cache:/ors-core/data/elevation_cache
- ./logs/ors/:/var/log/ors/
- ./logs/tomcat/:/usr/local/tomcat/logs
environment:
- JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=4 -Xms8g -Xmx8g
- 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
And the app.config (I only need isochrone):
root@host5-vm105:/home/openrouteservice/docker/conf# cat app.config.sample
{
"ors":{
"info": {
"base_url": "https://openrouteservice.org/",
"support_mail": "support@openrouteservice.org",
"author_tag": "openrouteservice",
"content_licence": "LGPL 3.0"
},
"services":{
"matrix":{
"enabled":false,
"maximum_locations":200,
"maximum_visited_nodes":100000,
"allow_resolve_locations":true,
"attribution":"openrouteservice.org, OpenStreetMap contributors"
},
"isochrones":{
"enabled":true,
"maximum_range_distance":[
{
"profiles":"any",
"value":50000
},
{
"profiles":"driving-car, foot-walking",
"value":100000
}
],
"maximum_range_time":[
{
"profiles":"any",
"value":18000
},
{
"profiles":"driving-car, foot-walking",
"value":3600
}
],
"maximum_intervals":10,
"maximum_locations":2,
"allow_compute_area":true,
"attribution":"openrouteservice.org, OpenStreetMap contributors"
},
"routing":{
"enabled":false,
"mode":"normal",
"sources":[
"data/osm_file.pbf"
],
"init_threads":1,
"attribution":"openrouteservice.org, OpenStreetMap contributors",
"distance_approximation":true,
"profiles":{
"active":[
"vehicles-car",
"vehicles-hgv",
"bike",
"pedestrian-walk"
],
"default_params": {
"encoder_flags_size": 8,
"graphs_root_path": "data/graphs",
"elevation_provider": "multi",
"elevation_cache_path": "data/elevation_cache",
"elevation_clear_cache": true,
"instructions": true,
"maximum_distance": 100000,
"maximum_segment_distance_with_dynamic_weights": 100000,
"maximum_waypoints": 50
},
"profile-vehicles-car":{
"profiles":"driving-car",
"parameters":{
"encoder_options":"consider_elevation=true|turn_costs=true|block_fords=false|use_acceleration=true",
"elevation":true,
"preparation":{
"min_network_size":200,
"min_one_way_network_size":200,
"methods":{
"ch":{
"enabled":true,
"threads":8,
"weightings":"fastest"
},
"lm":{
"enabled":true,
"threads":8,
"weightings":"fastest,shortest",
"landmarks":24
}
}
},
"execution":{
"methods":{
"astar":{
"approximation":"BeelineSimplification",
"epsilon":1
},
"ch":{
"disabling_allowed":true
},
"lm":{
"disabling_allowed":true,
"active_landmarks":6
}
}
},
"ext_storages":{
"WayCategory":{
},
"WaySurfaceType":{
},
"Tollways":{
}
}
}
},
"profile-vehicles-hgv":{
"profiles":"driving-hgv",
"parameters":{
"encoder_options":"consider_elevation=true|turn_costs=true|block_fords=false|use_acceleration=true",
"elevation":true,
"preparation":{
"min_network_size":200,
"min_one_way_network_size":200,
"methods":{
"ch":{
"enabled":true,
"threads":8,
"weightings":"fastest"
},
"lm":{
"enabled":true,
"threads":8,
"weightings":"fastest,shortest",
"landmarks":24
}
}
},
"execution":{
"methods":{
"astar":{
"approximation":"BeelineSimplification",
"epsilon":1
},
"ch":{
"disabling_allowed":true
},
"lm":{
"disabling_allowed":true,
"active_landmarks":6
}
}
},
"ext_storages":{
"WayCategory":{
},
"HeavyVehicle":{
"restrictions":true
},
"WaySurfaceType":{
},
"Tollways":{
}
}
}
},
"profile-bike":{
"profiles":"cycling-regular",
"parameters":{
"encoder_options":"consider_elevation=true|turn_costs=true|block_fords=false",
"elevation":true,
"preparation":{
"min_network_size":200,
"min_one_way_network_size":200,
"methods":{
"ch":{
"enabled":true,
"threads":8,
"weightings":"fastest"
},
"lm":{
"enabled":true,
"threads":8,
"weightings":"fastest,shortest",
"landmarks":24
}
}
},
"execution":{
"methods":{
"astar":{
"approximation":"BeelineSimplification",
"epsilon":1
},
"ch":{
"disabling_allowed":true
},
"lm":{
"disabling_allowed":true,
"active_landmarks":6
}
}
},
"ext_storages":{
"WayCategory":{
},
"WaySurfaceType":{
},
"HillIndex":{
},
"TrailDifficulty":{
}
}
}
},
"profile-pedestrian-walk":{
"profiles":"foot-walking",
"parameters":{
"encoder_options":"consider_elevation=true|turn_costs=true|block_fords=false",
"elevation":true,
"preparation":{
"min_network_size":200,
"min_one_way_network_size":200,
"methods":{
"ch":{
"enabled":true,
"threads":8,
"weightings":"fastest"
},
"lm":{
"enabled":true,
"threads":8,
"weightings":"fastest,shortest",
"landmarks":24
}
}
},
"execution":{
"methods":{
"astar":{
"approximation":"BeelineSimplification",
"epsilon":1
},
"ch":{
"disabling_allowed":true
},
"lm":{
"disabling_allowed":true,
"active_landmarks":6
}
}
},
"ext_storages":{
"WayCategory":{
},
"WaySurfaceType":{
},
"HillIndex":{
},
"TrailDifficulty":{
}
}
}
}
}
}
},
"logging": {
"enabled": true,
"level_file": "PRODUCTION_LOGGING.json",
"location": "/var/log/ors",
"stdout": true
}
}
}