2020-11-02 10:30:12 +01:00
|
|
|
# Buch des Monats
|
2020-01-02 12:52:43 +01:00
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
This simple script generate a HTML representation of the "Book of the Month"
|
|
|
|
list. This includes books and comics.
|
2019-03-25 10:29:11 +01:00
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
## Building
|
2017-12-29 12:29:29 +01:00
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
$ lein uberjar
|
2017-12-29 12:29:29 +01:00
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
## Usage
|
2016-12-23 14:20:05 +01:00
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
$ target/buchdesmonats-1.7-standalone.jar [book|comic]
|
|
|
|
|
2021-02-18 02:00:03 +01:00
|
|
|
## Docker
|
|
|
|
|
|
|
|
You can use the Dockerfile to generate the static content. This is useful
|
|
|
|
for a cronjob. You want to mount the target dir, so it is not lost after
|
|
|
|
the container stops. The Dockerfile is a multi stage dockerfile, which
|
|
|
|
first compiles the clojure files into a standalone jar file and then use
|
|
|
|
it to generate the book of the month content.
|
|
|
|
|
|
|
|
$ docker build . -t bdm:1.7
|
|
|
|
|
|
|
|
Run this periodically:
|
|
|
|
|
|
|
|
$ docker run -it -v "$PWD/public:/app/public" -e "TYPE=book" bdm:1.7
|
|
|
|
$ docker run -it -v "$PWD/public:/app/public" -e "TYPE=comic" bdm:1.7
|
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
## Authors
|
2017-12-29 12:30:28 +01:00
|
|
|
|
2020-11-02 10:30:12 +01:00
|
|
|
* Programming: [Aaron Fischer](https://aaron-fischer.net/)
|
|
|
|
* Content: [Michael Reutter](https://social.okoyono.de/@mezzo)
|