-
-
Notifications
You must be signed in to change notification settings - Fork 886
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
Use Cross-Compile #2806
Use Cross-Compile #2806
Conversation
6543
commented
Apr 14, 2023
•
edited
Loading
edited
I think the compile of openssl is one of the things the clux/muslrust images did for us. |
Maybe it would be enough to install openssl-dev from distro repositories, then it can use that and doesnt need to build from source? But I dont know if that works for cross-compilation. |
No openssl cross compile do work, the |
* Add docker/Dockerfile.multiarch * Update normal Dockerfile to be similar to multiarch one * docker build run on x86 and arm64 now manifest not needed, its handled by buildx plugin * Rename Dockerfile.arm To Dockerfile.debian * Emulate builder on arm target too * fix misspell * Improve Dockerfiles * naming * undo multiarchbuild settings as its blocked by a dependeny, see #2806 * Delete Dockerfile.debian
ok cleaned up the pull now ... I have a look into the ring issue but can not promise anything |
Co-authored-by: Wim Vander Schelden <lists@fixnum.org>
I believe we're encountering a bug with the Woodpecker configuration. Woodpecker is cloning the latest revision of lemmy-translations instead of the commit that this branch points to. (translations @ 1c42c57) Rust is then complaining that the translations are missing from the removed confirmation email feature. I think the easiest solution here is to rebase this branch so that the rust code isn't failing during the build? I'm really interested in having ARM64 builds working, since it reduces hosting costs a lot. |
uh nice :) |
A simple rebase wont do it as clux/muslrust:1.67.0 dont have crosscompilung toolchain (clux/muslrust#11) They link to https://github.com/cross-rs/cross#dockerfiles ... So we need to test if that can be used |
Hmm, maybe my (lack of) experience with Rust is showing, but could we just use |
|
I did had that and it created a bad image ... just look at my past pulls |
Might need just be 1 or 2 lines that would fix it so i encourage everybody to look at it |
I'll give it a try soon |
Yeah, my attempt didn't actually work. There's some weirdness where it's pulling the x86 libraries instead of arm, I think, but I'm not very good with C compilers. Maybe another look at cross is worth trying. |
There are already working ARM64 images by https://github.com/ubergeek77/lemmy-docker-multiarch |
Replaced by #3810 |