Sign inSign up

coenvl/gitbook-calibre

By coenvl

•Updated over 8 years ago

Image to compile gitbooks to pdf. Especially useful during CI/CD

Image
0

320

coenvl/gitbook-calibre repository overview

⁠gitbook-calibre

Docker image including gitbook and calibre, for CI/CI. Other images that I found were not able to include images in the PDF output, which is why I created this image.

⁠Usage:

To compile a book in the current folder you execute: docker run --rm -v$(pwd):/gitbook gitbook pdf . book.pdf

A gitlab ci/cd config may look like:

image: coenvl/gitbook-calibre

pdf:
  script:
  - gitbook pdf ./ ./$CI_PROJECT_NAME.pdf
  artifacts:
    paths:
    - $CI_PROJECT_NAME.pdf

Alternatively the image can be used to server a gitbook page. In order to do this you run: docker run --rm -v$(pwd):/gitbook gitbook -p4000:4000 serve

Tag summary

Content type

Image

Digest

Size

316.3 MB

Last updated

over 8 years ago

docker pull coenvl/gitbook-calibre