forked from zielmicha/fc00.org
-
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 zielmicha#12 from cwinfo/master
Docker Support
- Loading branch information
Showing
5 changed files
with
56 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM debian:stretch | ||
LABEL maintainer="Christer Waren/CWINFO <[email protected]>" | ||
|
||
ENV HOST localhost | ||
ENV PORT 3000 | ||
|
||
WORKDIR /src | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y git python-flask python-flup python-mysqldb python-pygraphviz python-networkx cron && \ | ||
apt-get clean | ||
|
||
RUN git clone https://github.com/Arceliar/yggdrasil-map.git yggdrasil-map | ||
|
||
COPY web_config.cfg /src/yggdrasil-map/web/web_config.cfg | ||
|
||
COPY entrypoint.sh /usr/bin/entrypoint.sh | ||
RUN chmod 0555 /usr/bin/entrypoint.sh | ||
|
||
COPY crontab /etc/cron.d/jobs | ||
RUN chmod 0644 /etc/cron.d/jobs | ||
|
||
ENTRYPOINT [ "/usr/bin/entrypoint.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 * * * * root cd /src/yggdrasil-map/web/ && python updateGraph.py |
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,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
cron | ||
cd /src/yggdrasil-map/web/ && python updateGraph.py | ||
python /src/yggdrasil-map/web/web.py --host $HOST --port $PORT | ||
exit $? |
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 @@ | ||
DEBUG = False |