-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add ARM build? #17
Comments
I have never built docker images for arm, but PRs welcome. @LuckyTurtleDev has done this before I think. |
I've got it building locally:
That's a bit of a hack though (there is probably a better environment variable set that we don't have to modify too) so I was hoping we could just turn on a setting on Github CI and have it spit out an ARM build. |
@msrd0 you can use buildx for this. But this is only usable if you do not compile anything (otherwise it will take forever) If you compile rust you can use |
Thanks @LuckyTurtleDev , I think we do compile rust as part of this project so might have to go the cross route. |
Wow buildx qemu is super slow. 38 minute build time: https://github.com/bertybuttface/docker-element/actions/runs/5850239047/job/15859402598 I'll take a look at the |
Wow that is fast (for buildx). So we might can do this easy and stick with buildx. This is much easier and faster to setup at github actions. As long we need only an additional architektur. |
Did you speed check the non-alpine version of the rust docker image as well? Last I checked, the official musl toolchain (the one from the rust:alpine docker image, not the one built by alpine linux, that one is fine) is very restricted in an unnecessary way when it comes to proc macros, and all musl versions (rustup and alpine linux) performed slower than when using gnu libc. |
Do we need this? Does rustup not choose the architektur of the os as default? |
I haven't yet but I will do that today, Didn't realise it was so limited. |
Builds a lot faster using rustup (2 minutes 30 seconds with no cache): https://github.com/bertybuttface/docker-element/actions/runs/5851214672 |
@msrd0 This build is back to the rust-slim image: https://github.com/bertybuttface/docker-element/actions/runs/5856193430 It runs 5 minutes quicker than the other buildx build but it is still very slow. My preferred option at this point is probably rustup. What do you think? |
I have create a draft for this. The whole build process (inclusive docker) takes 5:30 min. |
@bertybuttface keep in mind that oxipng is also build inside the docker image. So this will be also slow with buildx. |
Can you test whether |
@msrd0 That just hangs here but when I went to test my fork it is also hanging. I've definitely seen it working on aarch64 though as that Dockerfile I posted above works. I'll try and get to the bottom of what is different. |
Sorry this was an issue with me testing on |
Hello,
Is it fairly straightforward to make this also build an ARM64 image?
Cheers
The text was updated successfully, but these errors were encountered: