From ace6a51761f331f6cf2eac555fa11f4728f51b14 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 15 Feb 2016 21:18:49 +0100 Subject: [PATCH 1/3] Upgrade license --- src/buchdesmonats/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buchdesmonats/core.clj b/src/buchdesmonats/core.clj index 258b4dd..9c8e913 100644 --- a/src/buchdesmonats/core.clj +++ b/src/buchdesmonats/core.clj @@ -1,4 +1,4 @@ -;;; Copyright (C) 2014-2015 Aaron Fischer +;;; Copyright (C) 2014-2016 Aaron Fischer ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a copy of ;;; this software and associated documentation files (the "Software"), to deal in From 62fe59ad6103330210b3f0f595025d78c128966d Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 15 Feb 2016 22:20:23 +0100 Subject: [PATCH 2/3] 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 From 2026bc889889d4d21b613536f7045227059b1b63 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 15 Feb 2016 22:38:28 +0100 Subject: [PATCH 3/3] Remove old containers --- INSTALL.mkd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.mkd b/INSTALL.mkd index f4e31f8..73dd660 100644 --- a/INSTALL.mkd +++ b/INSTALL.mkd @@ -15,5 +15,5 @@ looking visual representation of the book covers. Run this periodically: - docker run -v "$PWD/public:/buchdesmonats/public/" buchdesmonats + docker run --rm -v "$PWD/public:/buchdesmonats/public/" buchdesmonats