Hello I’m trying to start graphhopper with docker
During starting, the OSM File is found by graphhopper.sh. The application .jar is called with:
exec "$JAVA" $JAVA_OPTS -Ddw.graphhopper.datareader.file="$OSM_FILE" -Ddw.graphhopper.graph.location="$GRAPH" \
$GH_WEB_OPTS -jar "$JAR" server $CONFIG
But in GraphHopper::init(GraphHopperConfig ghConfig), the datareader.file is not found :-/. Could I help me?
The error:
using java 1.8.0_242 (64bit) from /usr/local/openjdk-8
./graphhopper.sh: line 138: mvn: command not found
using existing osm file /data/europe_germany_berlin.pbf
existing jar found web/target/graphhopper-web-1.0-SNAPSHOT.jar
now web. JAVA_OPTS=-server -Xconcurrentio -Xmx1g -Xms1g -XX:+UseG1GC -Ddw.server.applicationConnectors[0].bindHost=0.0.0.0 -Ddw.server.applicationConnectors[0].port=8989
./graphhopper.sh: line 258: echo## OSM FILE: /data/europe_germany_berlin.pbf, ## GRAPh: /data/europe_germany_berlin-gh: No such file or directory
2020-02-26 08:45:20.241 [main] INFO i.d.server.DefaultServerFactory - Registering jersey handler with root path prefix: /
2020-02-26 08:45:20.252 [main] INFO i.d.server.DefaultServerFactory - Registering admin handler with root path prefix: /
java.lang.IllegalArgumentException: If no graph.location is provided you need to specify an OSM file.
at com.graphhopper.GraphHopper.init(GraphHopper.java:474)
at com.graphhopper.http.GraphHopperManaged.(GraphHopperManaged.java:89)
at com.graphhopper.http.GraphHopperBundle.run(GraphHopperBundle.java:192)
at com.graphhopper.http.GraphHopperBundle.run(GraphHopperBundle.java:53)
at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
at io.dropwizard.cli.Cli.run(Cli.java:78)
at io.dropwizard.Application.run(Application.java:93)
at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:36)
Question: the file config.yml is it used with docker starting?
Thanks