From 62fe59ad6103330210b3f0f595025d78c128966d Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 15 Feb 2016 22:20:23 +0100 Subject: [PATCH] Dockerize all the things!!11 --- .gitignore | 2 ++ Dockerfile | 6 ++++++ INSTALL.mkd | 13 +++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index 1ad78d1..c2b60a9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ pom.xml.asc /.lein-* /.nrepl-port /.project +/public/index.html +/public/book-covers/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..56ee711 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM java:7 + +ADD buchdesmonats-1.3.jar /buchdesmonats/ +WORKDIR /buchdesmonats + +CMD ["java", "-jar", "buchdesmonats-1.3.jar"] diff --git a/INSTALL.mkd b/INSTALL.mkd index ce48074..f4e31f8 100644 --- a/INSTALL.mkd +++ b/INSTALL.mkd @@ -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