emails-html-to-pdf
emails-html-to-pdf copied to clipboard
Make arm64 support available as image
Hi,
after the merge auf https://github.com/rob-luke/emails-html-to-pdf/pull/29 : Would it be possible to provide this version as a pre-build image?
Regards Joerg
I just cut a new release. Please let me know if it works for you. Thanks for the feedback,
Hi,
thanks for the help on that, but it is still not working :(
The following docker-compose.yml is working: ` version: "3.8"
services:
mailtopdf: build: context: ./ args: TARGETARCH: ARM64 dockerfile: Dockerfile container_name: mailtopdf environment: - IMAP_URL=XYZ - IMAP_USERNAME=XYZ - IMAP_PASSWORD=XYZ - IMAP_FOLDER=INBOX - SMTP_URL=XYZ - MAIL_SENDER=XYZ - MAIL_DESTINATION=XYZ - INTER_RUN_INTERVAL=600 - PRINT_FAILED_MSG='true' - HOSTS=127.0.0.1 tracking.paypal.com - WKHTMLTOPDF_OPTIONS={"load-media-error-handling":"ignore"} - MAIL_MESSAGE_FLAG=DELETED restart: always `
put the following yaml isn't ` version: "3.8"
services:
mailtopdf: image: ghcr.io/rob-luke/emails-html-to-pdf:latest container_name: mailtopdf environment: - IMAP_URL=XYZ - IMAP_USERNAME=XYZ - IMAP_PASSWORD=XYZ - IMAP_FOLDER=INBOX - SMTP_URL=XYZ - MAIL_SENDER=XYZ - MAIL_DESTINATION=XYZ - INTER_RUN_INTERVAL=600 - PRINT_FAILED_MSG='true' - HOSTS=127.0.0.1 tracking.paypal.com - WKHTMLTOPDF_OPTIONS={"load-media-error-handling":"ignore"} - MAIL_MESSAGE_FLAG=DELETED restart: always `
I still get the following error:
standard_init_linux.go:228: exec user process caused: exec format error
Joerg
@rob-luke - I am also getting this same error when I try to use your latest
images. I just realized the version I'm using currently I built myself on my RPI.
@derjoerg - I think when I built this locally a few months ago, I also had to do stuff to get the ARM64 version of libjpeg-turbo8
My local Dockerfile
FROM python:3.9-slim
RUN apt-get update && apt-get -y install wget
RUN wget http://ports.ubuntu.com/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1.20.04.1_arm64.deb
RUN apt-get install ./libjpeg-turbo8_2.0.3-0ubuntu1.20.04.1_arm64.deb
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_arm64.deb
RUN apt-get install -y ./wkhtmltox_0.12.6-1.focal_arm64.deb
Is this ever going to get added? :-/