-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Container Images for ARM Architecture (RaspberryPi) #108
Comments
Same case. |
Hi, When I last researched, It is not possible to build ARM based docker images at docker hub. There should be a way of building the image by hand, but I did not have the time to look into it yet. best, |
@bpatrik Looked further into this and started working with github actions. It should be possible to build different architecture images with buildx in exepremental mode. https://github.com/crazy-max/ghaction-docker-buildx I'm currently testing it, but there seem to have some problems. Not to mention 1h+ build times https://github.com/Suika/pigallery2/blob/master/.github/workflows/build.yml https://github.com/Suika/pigallery2/blob/master/docker/alpine/Dockerfile Should it somehow work, it will show up under |
@Suika It looks good. My current understanding on the topic:docker buildx helps you achieving multiarch build. Alternatively it is possible to use docker manifest method to get to the same result: https://github.com/rmoriz/multiarch-test +1As an extra feature it would be great to have a common release builder image, or achieve the same with github action, like this: pigallery2/docker/arm32v6/alpine/Dockerfile Lines 7 to 15 in 67754ec
Building the release folder takes a lot of time (especially on arm) and it is the same for all archs. |
That's good to know because I would've asked it otherwise. About the create-release being OS/Arch independent. Will invest some time into it the next few days, but there seem to be problems with node-sqlite3 and arm. Can be due to musl, if it can't be done with alpine, will swing over to some other OS. |
You can find and example for the It seems that I was able to build the app on arm32v6 and arm32v7/node:12-alpine . (Haven't run/test them yet tho, but the build process finishes) I was also able to reduce the amd64 stretch image size to 130MB with stretch-slim (compared to 100Mb amd64 alpine). My personal experience earlier that writing ububtu-based host filesystem from alpine-based docker container has issues. Docker broke from time to time. After changing to ubuntu based image, the issue was gone. So I'd like to support stretch also as a base. |
Ok, it seems to have built, check https://hub.docker.com/r/suika/pigallery2/tags Takes ~1h20m to build. |
Ok, works on x86_64 systems, someone needs to test it on arm devices. The config volume needs to be deleted. |
Thanks! Look good. They run, but all of them had the same issue: I'll also look into it later, but unfortunately, no time before weekend. |
https://github.com/Suika/pigallery2/runs/351818224
https://sharp.pixelplumbing.com/en/stable/install/#alpine-linux |
hm. Also I don't mind if we only support debian. With stretch-slim it has almost the same image size (30MB difference, see here). |
Up to you from now on. I'll leave the copy be as is. The workflow is there and you need only adjust the archs to be built against and the secrets. |
perfect. Would you like to make a PR so it shows up at the contributions? Otherwise I can handle from here. |
Just copy it. You will have to change a few things either way. |
Pigallery2 now supports arm ( bpatrik/pigallery2:nightly-stretch tested on Raspberry PI 3). |
Thank you very much for this. Will test it! Have a nice day! |
Is your feature request related to a problem? Please describe.
As I am setting up the RaspberryPi 4 as a 24/7 Server which will run some services I wanted to have a picture gallery accessible over a WebUI. So I researched which galleries would be suitable for a RaspberryPi and all my findings led me to try out pigallery.
As I want to use docker images for as many services as I could I also wanted to try pigallery on the Raspberry pi with a docker image. I was really sure, because of the name, that the provided docker images would also run on ARM architecture like on the RaspberryPi. I first tried to run it but always got stuck and then it struck me. All Docker Images are build for the AMD64 architecture and not for the ARM architecture.
It would be really nice if there would be also a ARM Docker image of Pigallery available to use on the Raspberry Pi 4. Would be really helpful.
Thank you very much in advance. :)
Have a nice day!
The text was updated successfully, but these errors were encountered: