From dd6e0118bd603b3d66868e22ca3125a4c4ae7a97 Mon Sep 17 00:00:00 2001 From: Scott Alfter Date: Thu, 12 Sep 2024 14:13:51 -0700 Subject: [PATCH] initial commit --- .gitignore | 1 + Dockerfile | 3 +++ README.md | 10 ++++++++++ build.sh | 6 ++++++ 4 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100755 build.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9b756d0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM debian +RUN apt update && apt install -y calibre libcairo2-dev fonts-noto fonts-noto-cjk pipenv && rm -r /var/lib/apt/lists/* && pipenv install cchardet==2.2.0a2 && pipenv install ebookmaker +ENTRYPOINT ["pipenv", "run", "ebookmaker"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..b8dc6b5 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +Ebookmaker for Docker +===================== + +This packages up Project Gutenberg's +[Ebookmaker](https://github.com/gutenbergtools/ebookmaker) to run under +Docker. I'm working on my own Gutenberg mirror that will download HTML +source from Project Gutenberg, produce EPUB and Kindle files from the +source, and generate a web interface to make it usable, as it appears that +the Kiwix mirror I've been using up to now is no longer being updated. + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f87b977 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +registry=cr.gitlab.alfter.us:443 +tag=salfter/ebookmaker:latest +docker build -t $tag . && \ +docker tag $tag $registry/$tag && \ +docker push $registry/$tag