-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
ARM 32bit container #46
ARM 32bit container #46
Comments
@StanDaMan0505 I guess you're using a 32bit OS on your pi? There is an ARM64 version |
I'm also planning to install it on my Raspberry Pi 3B+. 32 bits OS, |
The previous PR added a 32bit image for the front-end. I can't get the backend image to build on 32bit. I will need to do some further experimenting. Not sure if I'll be able to solve this for the next stable release. |
I've put some hours into it but can't get it to work. Will leave this open for now. The backend does not build, as some python dependencies have to be build from source apparently. I cannot debug this effectively without waiting more than an hour for the buildx process to complete. The latest build log with arm/v7 enabled can be found here: https://github.com/TomBursch/kitchenowl-backend/actions/runs/3337869487/jobs/5524771229 Maybe someone else who has an arm/v7 device can debug the build process on the device. |
Hey Tom, tried to build on my RPI4 with: And it failed because of the missing 32 Bit Support of Flutter.
As far i know, there is no official 32 bit /armv7 support of flutter, I only found a community project: https://github.com/ardera/flutter-pi |
Thanks for trying to help! Sorry I think I wasn't clear enough, the front end is not the problem. That builds fine for all systems if the host system is amd64 (through some trickery). The backend is the problem. Some dependencies are missing (I commented some of them out in the docker file) |
Oh sry. Understood. I tried the backend and get the same error like you in your pipeline. Luckily this only takes a few moments on the RPi4 until it happened. Will dig into it and see if i can find something out... |
Ok i could build it :-)
After that the build process aborted after 2,5h with: Failed to build bcrypt lxml Pillow So i tried to put only these packages in the requirements.txt to avoid the long build process. bcrypt was/is the hardest one. With > 4.0.0 it needs rust >1.56.0 because it says: Rust 1.48.0 does not match extension requirement >=1.56.0 The problem is: https://www.madebymikal.com/debian-10-buster-bcrypt-pip-install-breakage/ His recommondation was to install it via pip with
But that doesn't work for me.
does not work. Nothing happened... So i changed bcrypt to the latest 3 version 3.2.2 version and et voila... Build sucessfull after 10918.1s Here the complete apt-get block from the dockerfile:
So we only need a good solution to update bcrypt to a version >=4 |
Thanks for all the work! Maybe we could switch to a different image for building the dependencies like ubuntu? That would solve the rust problem. Not sure of the implications when copying the virtual environment in that case though. |
I think I got it and could manually install rust with the rustup script, not with the debian package (which is the 1.48) Building the bcrypt 4.0.1 started without the error :-) So let's see what happened in ~ 3h for the whole build :-) |
[+] Building 11241.6s (17/17) FINISHED :-) Complete changes in the dockerfile:
And for the rust installation (right after the apt-get)
|
😨 Again, thanks for all the work! I still feel weird about downloading the dependency from the web, but don't really know an alternative. |
I had to add the following packages in addition to |
Are there any news regarding this issue? I would be very interested in arm/v7 support and I noticed that a PR (TomBursch/kitchenowl-backend#13) already exists 🙂 |
@titro Do you have the built image by any chance? I have issues building it and it seems that the raspberry image is still not in the stable version, so not easy to run. Thanks in advance! |
Unfortunately not. Dont have any rpi running anymore 😒 |
@titro Ok thanks anyway! @TomBursch are there any chances for you to compile an ARM32 image for running it on a Raspberry Pi? At the moment I'm having issues using docker buildx and the compilation fails, plus it seems from titro's comments that it takes ages to compile. |
Hey, sorry that I've not commented on this further, but I don't have any plans of adding this anytime soon. I don't want the CI to run for multiple hours. Sorry about that. |
Hi, would love to test it on my Raspberry.. But there is no ARM Version so far. Any plans on adding it?
Originally posted by @StanDaMan0505 in #2 (comment)
The text was updated successfully, but these errors were encountered: