wimvds / docker-wkhtmltopdf

wkhtmltopdf for multiple base images

Home Page:https://hub.docker.com/u/surnet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-wkhtmltopdf

This repo contains scripts to create docker images which will be available in multiple variants.

The purpose is to publish docker images with a working and patched wkhtmltopdf installation and keep them as small as possible while delivering all functions.

Naming

The published images follow a naming convention.

Image name

The image name follows the format:

surnet/<os>-<base>-wkhtmltopdf or surnet/<os/base>-wkhtmltopdf

  • <os> matches the underlaying os.
  • <base> matches the used base image.
  • <os/base> matches the used base image if the os and base image are the same.

e.g. surnet/alpine-node-wkhtmltopdf or surnet/alpine-wkhtmltopdf

Tags

The tags represent version numbers which follow the format:

<1>-<2>-<3>

  • <1> matches the version of the base image.
  • <2> matches the wkhtmltopdf version.
  • <3> matches the Edition (see next chapter).

e.g. 3.6-0.12.4-small

Important notice

For some versions there is a tag available with a -font at the end. These versions contain a fix for an issue which prevented the usage of other fonts except those included in the html (e.g. Google Fonts).

This fix will be included in all newer versions.

Further information: Surnet/docker-wkhtmltopdf#1

Editions

There are two editions available for each version.

  • small contains only wkhtmltopdf. This should be sufficient for most use-cases
  • full contains wkhtmltopdf, wkhtmltoimage and the libraries.

Available Images

surnet/alpine-wkhtmltopdf

Docker Stars Docker Pulls

This image can be used as a base for your project or directly used via bash.

For a list of available versions please click here. If a version you would like is missing please open an issue on this repo.

FROM surnet/alpine-wkhtmltopdf:<version>
docker run surnet/alpine-wkhtmltopdf:<version> google.com - > test.pdf

surnet/alpine-node-wkhtmltopdf

Docker Stars Docker Pulls

This image can be used as a base for your NodeJS project.

For a list of available versions please click here. If a version you would like is missing please open an issue on this repo.

FROM surnet/alpine-node-wkhtmltopdf:<version>

surnet/alpine-python-wkhtmltopdf

Docker Stars Docker Pulls

This image can be used as a base for your Python project.

For a list of available versions please click here. If a version you would like is missing please open an issue on this repo.

FROM surnet/alpine-python-wkhtmltopdf:<version>

Contribute

Please feel free to open a issue or pull request with suggestions.

Keep in mind that the build process of these container takes some (a lot of) time.

Credits

Based upon the following repos/inputs:

About

wkhtmltopdf for multiple base images

https://hub.docker.com/u/surnet/

License:MIT License


Languages

Language:Shell 100.0%