-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Working Docker cross-compiling for Fedora 39 #2059
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
Working Docker cross-compiling for Fedora 39 #2059
Conversation
Co-Authored-By: James Le Cuirot <chewi@aura-online.co.uk>
|
Hah, turns out I was comparing with the compressed size shown on Docker Hub. Before: 902MB |
|
Okay, a lot of this is down to me adding |
|
Thanks for digging into this. I will try to pick work back up on this soon. |
|
I've tried to take the same approach for Ubuntu, but APT is not playing ball at all. This doesn't surprise me much, to be honest. |
|
I don't think it's as critical for Ubuntu/Debian... "Build and push" is the install sunshine step... you can see here it's rather quick even with qemu. https://github.com/LizardByte/Sunshine/actions/runs/7664452338/job/20888787801 |
ed6eaf3 to
68bf0ef
Compare
* Does not require QEMU at all! * Caches dnf metadata and downloads between rebuilds. * Respects TARGETARCH as a Docker variable, adding DNF_ARCH instead. * Reduces downloads and image size by ignoring weak dependencies. CUDA almost works. We borrow RHEL 8 packages for cross-compiling because this is the only distro with NVIDIA packages for ppc64le. Unfortunately, the toolkit doesn't support GCC 13, and forcing it leads to errors.
68bf0ef to
c7671c4
Compare
Works for amd64, arm64, and ppc64le. Unlike Fedora, this does require QEMU because APT seems incapable of operating on a different root directory for a different architecture. As with Fedora, cross-compiling CUDA works by borrowing the RHEL 8 packages because this is the only distro with NVIDIA packages for ppc64le.
c7671c4 to
562a002
Compare
|
Okay, think I'm about done now. |
a79567e to
4e49a8d
Compare
|
Sorry, I just can't follow this diff. Half of items marked as new were already in the target branch. We also can't cache all the dependencies... we only get 10GB of cache, and regularly far exceed this as is. I think I would rather just discuss what needs to change in #2020, rather than having a PR into it. |

Improvements to #2020 so that Fedora 39 now works.
The image is still a little large at 591MB, twice what you have now. I'm not sure why, but I don't think you were doingdnf updatebefore? That can bloat it quite a bit.I think you may need
setcapto give Sunshine the correct permissions, but you didn't seem to have this before?