membermatters / MemberMatters

An open source membership, access and payments portal for makerspaces and community groups.
https://membermatters.org
MIT License
41 stars 23 forks source link

ARMv7 Docker? #123

Closed kodaxx closed 2 years ago

kodaxx commented 3 years ago

How difficult is it to also have an armv7 docker image for those that would like to run this on a Pi? We have a docker/server/it guy at our space, but he's difficult to get ahold of most times.

I know enough to break things and be dangerous as a frontend dev, but a docker image would really help me a lot!

jabelone commented 3 years ago

Happy to add it to the list when I do a build. It just takes longer so I haven't been doing it as I already an x86 and ARM (Mac M1) build. I'll make sure all future versions will have an armv7 build too. :) I'm doing another build for armv7 now, will close this once it's been published to docker hub. :)

kodaxx commented 3 years ago

Thank you!!

jabelone commented 3 years ago

Sorry, forgot to update this ticket. Looks like there's been a recent problem with one of our dependencies and building on armv7. I haven't had time to sit down and work out what the problem is so for now this will have to wait sorry.

kodaxx commented 3 years ago

Sorry, forgot to update this ticket. Looks like there's been a recent problem with one of our dependencies and building on armv7. I haven't had time to sit down and work out what the problem is so for now this will have to wait sorry.

I tried building manually, it seemed to be an upstream problem with alpine. I was able to switch to a debian base and get it to build, so no rush at this point! :)

jabelone commented 2 years ago

Hey @kodaxx, good news! The upstream dependency issue has sorted itself out and I've upgraded to alpine 3.14. I've also setup a GitHub action to automatically rebuild the docker image when something new is pushed to main (from now on we'll have only the latest stable release on main). This process includes a build for linux/amd64, linux/arm64, and linux/arm/v7! Unfortunately it takes a little while to run on the GitHub hosted runner, so you'll have to wait about 2 hours after an update to main before the docker image is updated.

This means you should be able to just do a normal docker pull straight from your raspberry pi now. Let me know if you have any other problems with the linux/arm/v7 build, but hopefully this works well now. :)