-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements for running MOTIS in Docker (#154)
* store schedule.raw in data dir * update docker file * introduce system config (conf update) * dockerfile: add system config * ci: ui/web: strip elm-stuff and src dir * input volume * intermodal router tripbased
- Loading branch information
1 parent
519abbc
commit 67aea27
Showing
8 changed files
with
55 additions
and
12 deletions.
There are no files selected for viewing
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
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,9 +1,33 @@ | ||
FROM alpine:3.14 | ||
ARG TARGETARCH | ||
ADD motis-linux-$TARGETARCH/motis-linux-$TARGETARCH.tar.bz2 / | ||
RUN addgroup -S motis && adduser -S motis -G motis | ||
RUN addgroup -S motis && adduser -S motis -G motis && \ | ||
mkdir /data && \ | ||
chown motis:motis /data && \ | ||
echo -e "\ | ||
server.static_path=/motis/web \ | ||
\ | ||
intermodal.router=tripbased \ | ||
\ | ||
[import] \ | ||
paths=schedule:/input/schedule \ | ||
paths=osm:/input/osm.pbf \ | ||
data_dir=/data \ | ||
\ | ||
[tiles] \ | ||
profile=/motis/tiles-profiles/background.lua \ | ||
\ | ||
[osrm] \ | ||
profiles=/motis/osrm-profiles/car.lua \ | ||
profiles=/motis/osrm-profiles/bike.lua \ | ||
profiles=/motis/osrm-profiles/bus.lua \ | ||
\ | ||
[ppr] \ | ||
profile=/motis/ppr-profiles/default.json \ | ||
" > /system_config.ini | ||
EXPOSE 8080 | ||
VOLUME ["/data"] | ||
VOLUME ["/input"] | ||
WORKDIR /motis | ||
USER motis | ||
CMD ["/motis/motis", "-c", "/data/config.ini"] | ||
CMD ["/motis/motis", "--system_config", "/system_config.ini", "-c", "/input/config.ini"] |
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
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