Dockerize all the things!!11

This commit is contained in:
Aaron Fischer 2016-02-15 22:20:23 +01:00
parent ace6a51761
commit 62fe59ad61
3 changed files with 19 additions and 2 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@ pom.xml.asc
/.lein-*
/.nrepl-port
/.project
/public/index.html
/public/book-covers/

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM java:7
ADD buchdesmonats-1.3.jar /buchdesmonats/
WORKDIR /buchdesmonats
CMD ["java", "-jar", "buchdesmonats-1.3.jar"]

View File

@ -3,8 +3,17 @@
Scrape the book list from the "Book of the month" project and generate a nice
looking visual representation of the book covers.
# Running
# Building
lein uberjar
java -jar target/buchdesmonats-1.1-standalone.jar
java -jar target/buchdesmonats-1.3-standalone.jar
cp target/buchdesmonats-1.3-standalone.jar buchdesmonats-1.3.jar
docker build -t buchdesmonats .
# Running
Run this periodically:
docker run -v "$PWD/public:/buchdesmonats/public/" buchdesmonats