Surnet / docker-wkhtmltopdf

wkhtmltopdf for multiple base images
https://hub.docker.com/u/surnet/
MIT License
360 stars 65 forks source link

libssl1.1 (missing) when following the README instructions #10

Closed djc closed 5 years ago

djc commented 5 years ago

When following the README instructions to build a JDK-base image that includes wkhtmltopdf. However, when doing so, I get an error from apk:

ERROR: unsatisfiable constraints:
  libssl1.1 (missing):
    required by: world[libssl1.1]
chdanielmueller commented 5 years ago

What alpine version is the JDK-base image based on?

djc commented 5 years ago

Thanks for the quick response! It was based on openjdk:8u151-jre-alpine which I guess is quite old. When I use 8u212-jre-alpine instead, it seems to work.

chdanielmueller commented 5 years ago

alpine 3.8 and older used libssl1.0. I quickly checked and saw 8u212-jre-alpine is based on alpine 3.9.

If you would need to use the older image you could check the alpine version it is based on and then use an appropriate image version to copy wkhtmltopdf from. Also you could copy the dependencies for the version from the Dockerfile archive https://github.com/Surnet/docker-wkhtmltopdf/tree/master/archive/alpine-wkhtmltopdf

djc commented 5 years ago

Thanks!