GraphHopper.com | Forum | GitHub | Maps | Blog

Dockerfile/docker-compose not working properly


#1

I tried running graphhopper in docker, and several things are out of sync:

  1. Dockerfile has command graphhopper.sh buildweb which is absent in graphhopper.sh. Should I change it to simply build web?

I checked out the tag 0.10.0, and tried building/running that version, but

  1. When running the container, maven is not installed and fails to build GH. When I run docker-compose up, I see logs:

    gr | ./graphhopper.sh: line 86: mvn: command not found
    gr | ## using existing osm file /data/data.osm.pbf
    gr | ## building graphhopper jar: tools/target/graphhopper-tools-0.10-SNAPSHOT-jar-with-
    dependencies.jar
    gr | ## using maven at ./maven
    gr | ## compilation of parent failed
    gr | [INFO] Scanning for projects…
    gr | [INFO] ------------------------------------------------------------------------
    gr | [INFO] Reactor Build Order:
    gr | … Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:3.0.0

Not sure what is going wrong here.


#2

The building problem solved with network_mode: "bridge" in docker-compose file.


#3

Thanks. Although this is strange as it should be the default: https://docs.docker.com/network/#scope-of-this-topic