8000 Docker image that builds today, published to ghcr.io by yeroc03 · Pull Request #1 · yeroc03/ebook-tools · GitHub
[go: up one dir, main page]

Skip to content

Docker image that builds today, published to ghcr.io - #1

Merged
yeroc03 merged 1 commit into
masterfrom
docker-image
Nov 23, 2026
Merged

yeroc03 merged 1 commit into
masterfrom
docker-image

Conversation

@yeroc03
@yeroc03 yeroc03 commented Nov 23, 2026
Copy link
Copy Markdown
Owner

Why

The original Dockerfile no longer builds: debian:sid has no python-lxml (Python 2), and the Goodreads and WorldCat calibre plugins it installs talk to services that have closed their APIs. The image on Docker Hub (ebooktools/scripts) is from 2018, with a calibre of that age.

hopper's books example (examples/media/process/books.sh and _calibre-add.sh in yeroc03/hopper) needs a current calibre for two things: fetching metadata (calibre's Amazon and Google sources keep up with those sites) and calibredb add into Calibre-Web's library. This fork gives it an image of its own, so hopper no longer carries one.

What changes

  • Dockerfile: Debian stable (trixie) with a current calibre, the OCR and document tools the scripts use (tesseract, poppler, catdoc, djvulibre, p7zip), and this repository's scripts copied in rather than downloaded, so an image is exactly the commit it was built from. No entrypoint (run any tool by name: organize-ebooks.sh, calibredb, ebook-meta), no fixed user (runs as any --user; HOME=/tmp so calibre can keep its settings).
  • .github/workflows/docker.yml: builds the image, runs tests/run.sh inside it and checks calibredb, then publishes ghcr.io/yeroc03/ebook-tools:
    • push to master → :latest and :sha-<commit>
    • a v* tag → that tag
    • this pull request → built and tested only
  • .travis.yml removed: Travis no longer runs it, and the workflow replaces it.
  • README: a note at the top on what this fork adds.

The scripts themselves are unchanged.

After merging

The first push to master publishes the image. Check its visibility under the package's settings; if it's private, make it public, or the NAS can't pull it without logging in to ghcr.io.


Generated by Claude Code

The original Dockerfile no longer builds: debian:sid has no python-lxml
(Python 2), and the Goodreads and WorldCat calibre plugins it installs
talk to services that have closed their APIs.

- Dockerfile: Debian stable (trixie) with a current calibre, the OCR and
  document tools the scripts use, and this repository's scripts copied in
  (not downloaded). No entrypoint and no fixed user: run any tool by name,
  as any --user; HOME=/tmp so calibre can keep its settings.
- .github/workflows/docker.yml: build, run tests/run.sh inside the image,
  publish ghcr.io/<owner>/ebook-tools (:latest and :sha-<commit> from
  master, :<tag> from v* tags). Pull requests are built and tested only.
- .travis.yml removed: Travis no longer runs it, and the workflow replaces it.
- README: a note on what this fork adds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KdxZxdTR9922Lug2NafAJi
@yeroc03
yeroc03 merged commit e976967 into master Nov 23, 2026
yeroc03 added a commit that referenced this pull request Nov 23, 2026
Add the image workflow, which .gitignore kept out of #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0