Lemmy on Raspberry-Pi via docker?

Hey there! Has anyone gotten a lemmy server up and running on ARM64? Since Commit 17527d0e7e8c9fd3cc16aa41c636432b7b6b5650 it looks like "multi arch" compiling is not supported anymore?

Unfortunately I am absolutely clueless when it comes to Rust, so my hacking around in the Dockerfile has not gotten me far.

13 points · 2 comments · view on lemmy.world

2 Comments

bussy@lemmynsfw.com · 4 pts · 3y (1 reply)

I haven't tried it myself but there should be nothing blocking you from compiling it for arm, either by compling on the target or by cross-compiling from x86.

Native compiling is just installing rust and running cargo build --release. It's the easiest way but compile times can get pretty bad on low power devices like a pi.

Cross-compiling can be simple but gets complicated when stuff like openssl is involved. Cross may help with that https://github.com/cross-rs/cross

Applying that to a Docker is a bit of a different matter though... If you haven't figured it out, I can try it out on my raspberry pi in a few hours from now.

nii236@lemmy.jtmn.dev · 3 pts · 3y

Cross compiling is one of the few places that Go shines over Rust