This may have been asked before, but I’m not finding it.
I’ve got ORS up and running fine on my imac using docker. The only issue that I have is that it takes hours to restart the service after I close docker. It’s rebuilding all of the files in the graphs and the elevation cache, which takes a long time.
I would think that there would be some sort of switch that says “don’t rebuild anything, just start using what I already have”.
I don’t see anything in the Dockerfile to control this, and I have played around with the docker-compose.yml, but nothing seems to work.
# context: …/
# APP_CONFIG: ./openrouteservice/src/main/resources/app.config.sample
# OSM_FILE: ./openrouteservice/src/main/files/KS_NE_OK_TX.pbf
# OSM_FILE: ./openrouteservice/src/main/files/heidelberg.osm.gz
- BUILD_GRAPHS=False # Forces the container to rebuild the graphs, e.g. when PBF is changed
- “JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -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”
Am I missing something or will it always rebuild everything when started?
Is the image line causing this to happen?
I’m looking at making a system covering many of the states of the US, and worry that this will be undoable as when I shut the system down, it will then take ~3 days to rebuild and restart the system.