lcs icon indicating copy to clipboard operation
lcs copied to clipboard

Add Docker ARM64 support (and how to do it)

Open peterwilli opened this issue 2 years ago • 2 comments

Hey there, thanks for making this software.

My lemmy instance (https://lemmy.emerald.show) is running on an ARM server. While lcs Docker container doesn't support ARM, it's easy to make it so.

A demo image (made from commit 8ae9a6e350b0334f785619b98cef0548efec3863) is here: https://hub.docker.com/r/peterwilli/lcs/tags

If you wish to add official support:

  • Install the binfmt emulator (emulates ARM on X86 build workers): docker run --privileged --rm tonistiigi/binfmt --install all
  • Run docker buildx create --use
  • In the lcs source repo, run docker buildx build --tag=<your_username>/lcs --platform linux/arm64,linux/amd64 --push .

Hope this helps! This builds both amd64 and arm64.

I tested it on:

  • Odroid M1 server
    • Rockchip RK2568B2 quad-core ARM Cortex-A55
    • 8GB RAM

peterwilli avatar Aug 21 '23 17:08 peterwilli

Hi @Fmstrat sorry for the ping, this might be interesting to you, it'll bring arm support to your Docker image without any changes to the source code. I tested it out and it works fine over here.

peterwilli avatar Aug 21 '23 17:08 peterwilli

@peterwilli Thanks for the suggestion! Eventually I need to get GitHub Actions running on these so they build for all platforms on merges into the main branch.

Fmstrat avatar Oct 11 '23 14:10 Fmstrat