Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphhopper #11

Open
utagawal opened this issue Dec 25, 2022 · 2 comments
Open

Graphhopper #11

utagawal opened this issue Dec 25, 2022 · 2 comments

Comments

@utagawal
Copy link
Owner

1/ Add Graphhopper container to be lanched automatically at startup at least for France data

docker run -d --rm -it -v /var/data/gh:/data --entrypoint /bin/bash israelhikingmap/graphhopper -c "wget https://download.geofabrik.de/europe/france-latest.osm.pbf -O /data/france.osm.pbf && java -Ddw.graphhopper.datareader.file=/data/france.osm.pbf -Ddw.graphhopper.graph.location=france-gh -jar *.jar server /data/gh-config.yml"

2/ Monitor graphhopper availability, relaunch if not running

@gqdc
Copy link
Collaborator

gqdc commented Dec 28, 2022

I try to use the graphhopper.sh script, to be more consistent with the documentation.

Nothing done yet, but this is my base :

docker run -p 8989:8989 -v /var/data/gh:/data -e JAVA_OPTS="-Xmx10g -Xms10g" israelhikingmap/graphhopper -i /data/france.osm.pbf -c /data/gh-config -o /data/cac
he -p vtt

@gqdc
Copy link
Collaborator

gqdc commented Dec 28, 2022

1/ Add Graphhopper container to be lanched automatically at startup at least for France data

==> I added this cronjob :

@reboot docker run --name graphhopper -d --rm -it -p 8989:8989 -v /var/data/gh:/data -e JAVA_OPTS="-Xmx16g -Xms16g" israelhikingmap/graphhopper -i /data/planet.osm.pbf -c /data/gh-config -o /data/cache -p vtt --host 0.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants