forked from markcushman/motomap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tits4net/refactor
Refactor
- Loading branch information
Showing
20 changed files
with
74 additions
and
114,148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,36 @@ | ||
# Use the small IBM java JRE | ||
FROM ibmjava:sfj | ||
|
||
# Load our application | ||
COPY mkgmap /motomap/mkgmap | ||
COPY splitter /motomap/splitter | ||
# Set configuration, default to some basic (light) examples | ||
ENV MAPS_LIST "antarctica;europe/andorra;europe/france/guyane" | ||
ENV MKGMAP_VERSION="r4918" | ||
ENV SPLITTER_VERSION="r653" | ||
|
||
# Prepare helper software in image | ||
RUN apt-get update ; apt-get -y install curl unzip | ||
|
||
# Download needed software in image and extract them | ||
# mkgmap | ||
RUN mkdir -p /motomap/mkgmap && \ | ||
curl --output /motomap/mkgmap/mkgmap.zip https://www.mkgmap.org.uk/download/mkgmap-${MKGMAP_VERSION}.zip && \ | ||
unzip -d /motomap/mkgmap/ /motomap/mkgmap/mkgmap.zip | ||
|
||
# splitter | ||
RUN mkdir -p /motomap/splitter && \ | ||
curl --output /motomap/splitter/splitter.zip https://www.mkgmap.org.uk/download/splitter-${SPLITTER_VERSION}.zip && \ | ||
unzip -d /motomap/splitter/ /motomap/splitter/splitter.zip | ||
|
||
# Download global usefull dataset | ||
# precomp-sea | ||
RUN mkdir -p /motomap/precomp-sea && \ | ||
curl --output /motomap/precomp-sea/sea-latest.zip https://www.thkukuk.de/osm/data/sea-latest.zip | ||
|
||
# bounds | ||
RUN mkdir -p /motomap/bounds && \ | ||
curl --output /motomap/bounds/bounds-latest.zip https://www.thkukuk.de/osm/data/bounds-latest.zip | ||
|
||
# Add our scripts | ||
COPY motomap /motomap/motomap | ||
COPY precomp-sea /motomap/precomp-sea | ||
|
||
# run motomap | ||
# Run script | ||
CMD ["/bin/bash", "/motomap/motomap/motomap.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.PHONY: help build push all | ||
|
||
build: | ||
docker build -t motomap . | ||
|
||
run: | ||
docker run motomap | ||
|
||
debug: | ||
docker run --rm -it --entrypoint bash motomap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
motomap: | ||
image: "docker.io/library/motomap" | ||
volumes: | ||
- ./data/output/:/motomap/output/ | ||
environment: | ||
MAPS_LIST: "antarctica;europe/andorra;europe/france/guyane" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.