Simplify and add url to graphhopper.sh (#14)
Fixes #11 Fixes #12 * All relevant changes * Code review comments * Small changes * Code review fix * Run the server as default action * Remove unneeded commands from dockerfile * Update graphhopper.sh Adjust usage text Use `exit 2` for usage errors * Update README.md Update the default JAVA_OPTS value according to the Dockerfile * Add execute permissions * Fix extra " * Fix missing space * Remove unwanted spaces * Update README.md Co-authored-by: zstadler <zeev.stadler@gmail.com>
هذا الالتزام موجود في:
@@ -10,9 +10,7 @@ RUN mvn clean install
|
||||
|
||||
FROM openjdk:11.0-jre
|
||||
|
||||
ENV JAVA_OPTS "-Xmx1g -Xms1g -Ddw.server.application_connectors[0].bind_host=0.0.0.0 -Ddw.server.application_connectors[0].port=8989"
|
||||
|
||||
ENV TOOL_OPTS "-Ddw.graphhopper.datareader.file=europe_germany_berlin.pbf -Ddw.graphhopper.graph.location=default-gh"
|
||||
ENV JAVA_OPTS "-Xmx1g -Xms1g"
|
||||
|
||||
RUN mkdir -p /data
|
||||
|
||||
@@ -22,10 +20,12 @@ COPY --from=build /graphhopper/web/target/graphhopper*.jar ./
|
||||
|
||||
COPY ./config-example.yml ./
|
||||
|
||||
COPY --chmod=0755 ./graphhopper.sh ./
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
EXPOSE 8989
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:8989/health || exit 1
|
||||
|
||||
ENTRYPOINT [ "java $JAVA_OPTS $TOOL_OPTS -jar *.jar", "server config-example.yml" ]
|
||||
ENTRYPOINT [ "graphhopper.sh", "-c", "config-example.yml" ]
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم