-
Notifications
You must be signed in to change notification settings - Fork 347
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
doesn't work on Alpine #53
Comments
Just installing the wkhtmltopdf did not help me. I followed this instructions and it helped me: |
@blaszczakphoto hi, after you have installed, did |
yes, it was available in the console. I could type |
I can confirm this as of today. I was using the gem for production environment in a Left the gem for development and installed If using gem |
Anyone experiencing this issue with latest? GEMFILE INSTALL |
also having issues, managed to get it to work following these instructions: |
Assuming your gems are located in
It's ugly but works like a charm |
https://github.com/khalilgharbaoui/wkhtmltopdf-binary-edge-alpine for version 0.12.5 on alpine |
@unixmonkey Maybe we can close this issue 🤝 The other gems/repos are good alternatives, as mentioned by guys🥇 |
On Alpine Linux 3.14.2 you don't need the
On Alpine Linux 3.14.2 the wkhtmltopd can be added like this natively:
With that it's globally available. |
Hi There, since Alpine 3.15 this library has now been removed from their package repository. |
That's very bad news :-( In the Alpine release notes they recommend to use weasyprint, an alternative to wkhtmltopdf. Does anybody has experience with it? |
Thanks for the suggestion, I will try it now. The package |
This works for me in alpine 3.18 without using the binary gem: ############################ wkhtmltopdf binary ###############################
FROM surnet/alpine-wkhtmltopdf:3.18.0-0.12.6-small as wkhtmltopdf
############################ COPY APPLICATION FILES ###############################
FROM ruby:3.2.2-alpine as production
ARG RAILS_ENV='production'
ENV RAILS_ENV=$RAILS_ENV
ENV RAKE_ENV=$RAILS_ENV
RUN apk add --update
fontconfig \
freetype \
libx11 \
ttf-dejavu \
libxrender
COPY --from=wkhtmltopdf /bin/wkhtmltopdf /usr/bin/wkhtmltopdf |
If someone else is having these issues and need to use the binary you use one of these solutions. |
Yeah @PedroAugustoRamalhoDuarte, I mean that the |
I'm using docker image ruby:2.6.3-alpine and this gem didn't work. To work, you have to install by
apk add wkhtmltopdf
The text was updated successfully, but these errors were encountered: