discuitnet / discuit

A free and open-source community discussion platform.
https://discuit.net
GNU Affero General Public License v3.0
399 stars 46 forks source link

arm64 docker images #122

Closed penchantlabs closed 3 weeks ago

penchantlabs commented 1 month ago

Would be much appreciated if arm64 docker images could be published so that I can build on my server.

Thanks.

Codycody31 commented 1 month ago

Arm64 would be nice to have, it was originally on my requirements for the docker image but due to complexity and time only amd64 was supported. If I remember correctly the main roadblock was CGO and some issue compiling due to the image processing library or something like that discuit uses. Might be able to take some time later this week to give a multi-arch build a try again.

penchantlabs commented 1 month ago

I managed to compile on arm64 without using docker. I had to install libvips using another method than the one you provided however.

I manually the commands in the example dockerfile here: https://github.com/libvips/libvips/issues/3438

I did this with VIPS_VERSION=8.15.2

Codycody31 commented 1 month ago

quick update, I have a workflow that can build both arm64 and amd64 images, however I can't seem to get to successfully build as a multi-arch with both for some reason. Once I get that figured out I should be able to put a PR together

Codycody31 commented 1 month ago

I've got a working workflow now, @penchantlabs if you are able to, could you give insidiousfiddler/multiarch-discuit:latest a try and see how that works for you? supports linux/arm64 & linux/amd64 I just need to see if the image stuff work correctly as I wasn't sure if vips is needed at runtime or just when the binary was compiled.