Image to compile gitbooks to pdf. Especially useful during CI/CD
320
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.
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
Content type
Image
Digest
Size
316.3 MB
Last updated
over 8 years ago
docker pull coenvl/gitbook-calibre