Dockerize all the things!!11
This commit is contained in:
parent
ace6a51761
commit
62fe59ad61
3 changed files with 19 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -8,3 +8,5 @@ pom.xml.asc
|
||||||
/.lein-*
|
/.lein-*
|
||||||
/.nrepl-port
|
/.nrepl-port
|
||||||
/.project
|
/.project
|
||||||
|
/public/index.html
|
||||||
|
/public/book-covers/
|
||||||
|
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
FROM java:7
|
||||||
|
|
||||||
|
ADD buchdesmonats-1.3.jar /buchdesmonats/
|
||||||
|
WORKDIR /buchdesmonats
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "buchdesmonats-1.3.jar"]
|
13
INSTALL.mkd
13
INSTALL.mkd
|
@ -3,8 +3,17 @@
|
||||||
Scrape the book list from the "Book of the month" project and generate a nice
|
Scrape the book list from the "Book of the month" project and generate a nice
|
||||||
looking visual representation of the book covers.
|
looking visual representation of the book covers.
|
||||||
|
|
||||||
# Running
|
# Building
|
||||||
|
|
||||||
lein uberjar
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue