rob-luke / emails-html-to-pdf

Convert emails without attachments to pdf and send as email
32 stars 7 forks source link

Make arm64 support available as image #32

Open derjoerg opened 2 years ago

derjoerg commented 2 years ago

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

rob-luke commented 2 years ago

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

derjoerg commented 2 years ago

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:

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:

I still get the following error: standard_init_linux.go:228: exec user process caused: exec format error

Joerg

smseidl commented 2 years ago

@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 commented 2 years ago

@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
NossieUK commented 1 year ago

Is this ever going to get added? :-/