Skip to content

Commit 01a0733

Browse files
authored
Merge pull request #49 from zinsbaustein/update_to_0.12.5
Update to 0.12.5
2 parents 24e4309 + f2d79ae commit 01a0733

34 files changed

+245
-8
lines changed

.docker/Dockerfile-centos_6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM centos:6
2+
3+
RUN yum install -y ruby libjpeg-turbo libpng libXrender fontconfig libXext
4+
5+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.docker/Dockerfile-centos_7

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM centos:7
2+
3+
RUN yum install -y ruby libjpeg-turbo libpng libXrender fontconfig libXext
4+
5+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.docker/Dockerfile-debian_8

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM debian:8
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg62-turbo libpng12-0 libxrender1 libfontconfig1 libxext6
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.docker/Dockerfile-debian_9

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM debian:9
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg62-turbo libpng16-16 libxrender1 libfontconfig1 libxext6
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.docker/Dockerfile-ubuntu_14.04

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:14.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg8 libxrender1 libfontconfig1
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.docker/Dockerfile-ubuntu_16.04

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:16.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg8 libxrender1 libfontconfig1
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.docker/Dockerfile-ubuntu_18.04

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:18.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg8 libxrender1 libfontconfig1
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
pkg/*
2+
bin/wkhtmltopdf_centos_6_amd64
3+
bin/wkhtmltopdf_centos_7_amd64
4+
bin/wkhtmltopdf_debian_8_amd64
5+
bin/wkhtmltopdf_debian_9_amd64
6+
bin/wkhtmltopdf_macos_cocoa
7+
bin/wkhtmltopdf_macos_carbon
8+
bin/wkhtmltopdf_ubuntu_14.04_amd64
9+
bin/wkhtmltopdf_ubuntu_16.04_amd64
10+
bin/wkhtmltopdf_ubuntu_18.04_amd64
11+
bin/wkhtmltopdf_centos_6_i386
12+
bin/wkhtmltopdf_centos_7_i386
13+
bin/wkhtmltopdf_debian_8_i386
14+
bin/wkhtmltopdf_debian_9_i386
15+
bin/wkhtmltopdf_ubuntu_14.04_i386
16+
bin/wkhtmltopdf_ubuntu_16.04_i386
17+
bin/wkhtmltopdf_ubuntu_18.04_i386

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.12.5
2+
Update `wkhtmltopdf` binaries with version 0.12.5
3+
14
# 0.12.4
25
Update `wkhtmltopdf` binaries with version 0.12.4
36

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# wkhtmltopdf_binary_gem
2+
3+
## Extracting binaries
4+
5+
Hints for extracting binaries from https://wkhtmltopdf.org/downloads.html (dpkg and rpm2cpio is available on Homebrew).
6+
7+
Debian/Ubuntu
8+
9+
dpkg -x wkhtmltox_0.12.5-1.trusty_amd64.deb .
10+
11+
CentOS
12+
13+
rpm2cpio wkhtmltox-0.12.5-1.centos7.x86_64.rpm | cpio -idmv
14+
15+
macOS
16+
17+
xar -xf wkhtmltox-0.12.5-1.macos-cocoa.pkg
18+
cat Payload | gunzip -dc | cpio -i
19+
20+
## Compression
21+
22+
Binaries should be compressed with `gzip --best` after extracting. The matching binary will be extracted on first
23+
execution of `bin/wkhtmltopdf`.
24+
25+
## Testing with Docker
26+
27+
Make sure you have Docker and Docker Compose installed (see https://docs.docker.com/compose/install/ for more
28+
information).
29+
30+
There are Dockerfiles for the supported Linux based distributions under `.docker`. You can build them all with
31+
`docker-compose build` and run each individually with e.g. `docker-compose run ubuntu_18.04`.
32+
33+
There also is a rudimentary minitest test that simply invokes `docker-compose run` for each distribution and
34+
expects to see the output of `wkhtmltopdf --version`. Just run `rake` to run it.
35+
36+
You can clean up after testing with `docker-compose down --rmi all`.

0 commit comments

Comments
 (0)