emails-html-to-pdf icon indicating copy to clipboard operation
emails-html-to-pdf copied to clipboard

Make arm64 support available as image

Open derjoerg opened this issue 2 years ago • 5 comments

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

derjoerg avatar Mar 31 '22 11:03 derjoerg

I just cut a new release. Please let me know if it works for you. Thanks for the feedback,

rob-luke avatar Apr 06 '22 00:04 rob-luke

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

derjoerg avatar Apr 06 '22 19:04 derjoerg

@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.

smseidl avatar Apr 07 '22 03:04 smseidl

@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

smseidl avatar Apr 07 '22 03:04 smseidl

Is this ever going to get added? :-/

NossieUK avatar Mar 14 '23 01:03 NossieUK