diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | sites/mediengewitter.krebsco.de/README.md | 11 | ||||
-rw-r--r-- | sites/mediengewitter.krebsco.de/magnets/Dockerfile | 17 | ||||
-rw-r--r-- | sites/mediengewitter.krebsco.de/magnets/README.md | 5 | ||||
m--------- | sites/mediengewitter.krebsco.de/magnets/magnets | 0 |
5 files changed, 36 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index b59b012a..3fcb4693 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,3 +34,6 @@ [submodule "sites/paste.retiolum/bump"] path = sites/paste.retiolum/bump url = git@github.com:makefu/bump.git +[submodule "sites/mediengewitter.krebsco.de/magnets/magnets"] + path = sites/mediengewitter.krebsco.de/magnets/magnets + url = https://github.com/makefu/magnets.git diff --git a/sites/mediengewitter.krebsco.de/README.md b/sites/mediengewitter.krebsco.de/README.md new file mode 100644 index 00000000..e7bd88a2 --- /dev/null +++ b/sites/mediengewitter.krebsco.de/README.md @@ -0,0 +1,11 @@ +# Mediengewitter +Broadcast funny pictures. + +Mediengewitter is divided into two parts: +1. the image crawler (magnets) +2. the website (mediengewitter) + +Mediengewitter is deployed via docker containerization. + +# magnets + diff --git a/sites/mediengewitter.krebsco.de/magnets/Dockerfile b/sites/mediengewitter.krebsco.de/magnets/Dockerfile new file mode 100644 index 00000000..8bf400d5 --- /dev/null +++ b/sites/mediengewitter.krebsco.de/magnets/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:latest +RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list +RUN dpkg-divert --local --rename --add /sbin/initctl +RUN ln -s /bin/true /sbin/initctl +RUN apt-get update +RUN apt-get install -y python-software-properties python g++ make +RUN add-apt-repository -y ppa:chris-lea/node.js +RUN apt-get update +RUN apt-get -y install nodejs +RUN mkdir -p /opt/magnets +Add magnets/ /magnets +RUN cd /magnets && npm install +# fix crappy wwwdude +RUN cp /magnets/node_modules/wwwdude/lib/wwwdude/node-versions/v0.5.x.js /magnets/node_modules/wwwdude/lib/wwwdude/node-versions/v0.10..js +# -v /media/ext/magnet_pics/:/images +ENV image_folder /images +CMD ["/magnets/run.sh"] diff --git a/sites/mediengewitter.krebsco.de/magnets/README.md b/sites/mediengewitter.krebsco.de/magnets/README.md new file mode 100644 index 00000000..08de8823 --- /dev/null +++ b/sites/mediengewitter.krebsco.de/magnets/README.md @@ -0,0 +1,5 @@ +# docker + + docker build -t krebs/magnets . + # autostart this somehow + docker run -v /media/ext/magnet_pics/:/images krebs/magnets diff --git a/sites/mediengewitter.krebsco.de/magnets/magnets b/sites/mediengewitter.krebsco.de/magnets/magnets new file mode 160000 +Subproject 7f8925b2779706c381416f4d578385f520ad462 |