Skip to content

Commit

Permalink
Fix docker container, add info to readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jan 19, 2025
1 parent aaba6be commit 676a5b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.9-eclipse-temurin-21 as build
FROM maven:3.9-eclipse-temurin-21 AS build

WORKDIR /app

Expand All @@ -8,12 +8,12 @@ RUN mvn package

FROM eclipse-temurin:21-jre-alpine

ENV JAVA_OPTS "-Xmx1g -Xms1g"
ENV JAVA_OPTS="-Xmx1g -Xms1g"

WORKDIR /app

COPY --from=build /app/target/global-search-1.0-SNAPSHOT-jar-with-dependencies.jar ./

VOLUME [ "/data" ]

CMD java $JAVA_OPTS -jar global-search-1.0-SNAPSHOT-jar-with-dependencies.jar
ENTRYPOINT java $JAVA_OPTS -jar global-search-1.0-SNAPSHOT-jar-with-dependencies.jar "$0" "$@"
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ To run do:
To serve the PMTiles run:

`docker run -p 7777:8080 -v $(pwd)/data/:/data/ --rm protomaps/go-pmtiles serve /data/ --public-url=http://localhost:7777 --cors=\*`

Additional arguments to this wrapper besides the Planetiler's arguments:

|---|---|---|
|`languages`|A comma separated list of languages to add to the tiles and search|`en,he`|
|`es-address`|The address of the Elasticsearch database|`http://localhost:9200`|
|`es-index-alias`|The alias of the index to insert into, it will create "1" and "2" suffix for the relevant index before switching|`points`|
|---|---|---|

0 comments on commit 676a5b8

Please sign in to comment.