Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Link on Github - "you can use this script.", ? use in Docker running Bullseye #213

Closed
sscotti opened this issue Nov 29, 2021 · 3 comments

Comments

@sscotti
Copy link

sscotti commented Nov 29, 2021

The link on this page: ReadMe that says "you can use this script." is broken.

I also recently upgraded some of my Docker containers to use Debian Bullseye instead of Buster, and it looks like maybe that partially broken some of the features. The relevant parts of my DockerFile are as following, using Debian Bullseye

RUN pip3 install pdfkit
RUN pip3 install imgkit

RUN apt-get --assume-yes install xvfb
RUN apt-get --assume-yes install xorg
RUN apt-get --assume-yes install xz-utils

COPY wkhtmltox-0.12.4_linux-generic-amd64.tar.xz /
RUN tar xvJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
RUN cp wkhtmltox/bin/wkhtmlto* /usr/bin/

I'm not sure that is "correct" now, and if it was / is even necessary to install xvfb, xorg. wkhtmltox-0.12.4_linux-generic-amd64.tar.xz might be a bit outdated at this point.

I would prefer to maybe just use a static build for Debian BullsEye that will work in my container with QT support because I do not anticipate upgrading that anytime soon really. It looks like there are not any static builds for BullsEye yet though ?

See: Downloades

@ugoQ
Copy link

ugoQ commented Nov 30, 2021

In the last issue I commented about the link being broken too.
I was given that link, if it helps.

Also, I managed to install the 0.12.6-1 (with patched QT) using this on Ubuntu, but this totally broke my pdfs content.

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb

JazzCore added a commit that referenced this issue Nov 30, 2021
@JazzCore
Copy link
Owner

Link is fixed now, @ugoQ provided correct one that I use on GH CI servers with Ubuntu 18.04 bionic. It could work on more fresh Debian/Ubuntu versions, but not guaranteed. Since installation is so different on various distribs I cannot give any tips, you should find correct list of packages that works for your case

@sscotti
Copy link
Author

sscotti commented Nov 30, 2021

Thanks.

In my DockerFile I changed what I had to this:

Needed for the .deb pacakge, section below builds the wkhtmltopdf package

RUN apt-get --assume-yes install fontconfig
RUN apt-get --assume-yes install xfonts-75dpi
RUN apt-get --assume-yes install xfonts-100dpi
RUN apt-get --assume-yes install xfonts-scalable
RUN apt-get --assume-yes install xfonts-base

COPY wkhtmltox_0.12.6-1.buster_amd64.deb /
RUN dpkg -i wkhtmltox_0.12.6-1.buster_amd64.deb

and that actually seemed to work, even though I am using Debian11 as a base image. I'll do further testing, but the Docker Container builds and wkhtmltopdf, wkhtmltoimage and pdfkit still seem to work.

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

No branches or pull requests

3 participants