-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 images are not multi-architecture #2780
Comments
Thanks for the info. This is pretty low priority; it's easy enough to build the docker images on any system yourself. Current images are built on an x86 system with commands in the Makefile - see |
I would love to see this fix. |
@mcnewton an official image would still add a ton of value. Most ARM users (which is now rather common) won't customize the image in any way, so not having a build at ready would be an unnecessary barrier to adoption. I don't think this is "pretty low" in priority. Perhaps medium; or low, at most. But again, I lack the vision of the bigger picture in the project. How would you estimate the effort to add support for ARM builds? Would it be possible to add CI infrastructure to build ARM images (perhaps with QEMU/etc, or buildx?) |
Sure if you've got some magic to take all the high and medium items off our to-do lists, then this will jump up from being low priority. Otherwise, it stays where it is. I'm not disputing whether it's useful or not. I have no estimate on the effort involved, as I've not looked at it. As always, pull requests welcome. |
Agreed. This would be a relatively easy one for an external contributor to tackle. I'd be great to have a CI task that built a version of the server for ARM under qemu and tested it... Even better if we could cross-compile and then test under an emulator. |
First of all, I'm sorry for my initial message. I took a very quick look into this yesterday. The build system is quite complex, but I think I have a vague idea on how to make it work by using buildx. I cloned the project and made some changes, but I didn't have the time to test the build again. I also don't know yet if the changes I made would break any automated CI pipelines the project may have. In fact, I don't know anything about this project's CI pipelines at all. My idea was to change the Unfortunately, I had to stop before I could test these changes in a proper x64 Linux host. I don't have too much time now, but perhaps this weekend I can see into this issue. If it's okay, I can commit what I have changed and open a PR, just for the sake of getting early feedback. |
@flisboac thanks for taking a look! Don't worry about crossbuild, that's more for developers to check different platforms, it's not used for the official Docker builds. Docker builds are done by I don't know how the alternative arch builds work at all (I've never looked at buildx) but if it's a simple command to run then I would imagine that it's quite easy to add into |
I've made some changes to build/publish multi-platform images. |
Just wanted to chime in: Attempting to build on an arm64 raspberry pi: the docker build process fails because there is a node dependency that is not compatible with arm64:
|
Raspberry, M1, M2 and M3 users (most mac users) can't use the image due this. Any updates? |
It seems as though the current versions of @antora/site-generator-default and @antora/cli (latest for both is 3.1.7 at the time of writing) can both install on ARM64 architectures, whereas version 2.1 cannot due to dependency on |
@dronenb We're happy to take patches. There's no reason to keep antora on an older version. |
Not sure why there are comments about Antora on this issue - if you have problems with that then you are trying to build the wrong images. The main docker images don't use Antora at all. As I already explained in a comment above, don't use the I just tested on a Raspberry Pi and the Docker images build and run just fine - see
(The main issue still stands, but it doesn't stop you building Docker images for ARM yourself if you really want the extra layer of complexity. As well as that, the main documentation is all built from the master branch, which I updated to use Antora v3 last year.) |
@mcnewton apologies for the confusion, I must be missing something, as I do not see a
What exactly am I missing? |
Don't use the development |
As a starting point, development build images are now multi-arch with ARM support: see the
or
Works for me on Raspberry Pi 5 (bookworm) but please report back other successes/failures. |
Issue type
Defect/Feature description
How to reproduce issue
Trying to use the docker image for freeradius on a raspberry pi leads to errors during build time:
building the image locally fixed this issue.
There are multiple ways of creating multi-arch images and I am not sure how the current build gets deployed to docker hub. I have had success using dockers buildx cli extension
The text was updated successfully, but these errors were encountered: