-
Notifications
You must be signed in to change notification settings - Fork 270
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
arm64 official docker images #260
Comments
Yeah, that should be doable in theory, though we use Docker Automated Builds for the images right now and afaict they don't support aarch64. So we'd have to build and release via Travis-CI or Github Actions maybe. |
That would be great. This image is used by Prometheus Operator, and for now it is not usable on a multi-arch cluster (amd64, arm64 for my use case). |
If you happen to have examples of someone building aarch64 images in an automated workflow somewhere that we could take a look at that'd be great, that would help us set it up. |
Here is what the guy from |
More useful info I found: docker/hub-feedback#1261 |
So, looking at kube-webhook-certgen, what they do is cross-compile static Go binaries and then use them to build distroless images. That'll be a bit trickier for us since we use CGo meaning we have a libc dependency for pkcs11 support. We could try to cross-compile an arm64 binary with CGo disabled, make it fully static, and then have that be the arm64 docker image (presumably docker+arm64+pkcs11 is not something anyone needs right now). |
So this should work:
I don't have an arm64 machine to test this yet though, and I'm not sure how we'd get that built in Docker Hub alongside the regular image so we'd probably have to move building these to Travis-CI. Or maybe I could just release it manually until we automate it. |
Any movement on this? I've got an arm64 machine to test on if that helps. |
Unfortunately Docker Hub's automated builds doesn't support |
It looks like GitHub actions just supports self-hosed ARM runners: https://github.blog/changelog/2019-12-03-github-actions-self-hosted-runners-on-arm-architectures/ There does appear to be |
You don't need buildx or your own runners to build multi-arch docker images. You can use https://github.com/multiarch/qemu-user-static to enable arm builds natively on the public runners. However with that docker file posted above, no arm commands are being run so qemu magic isn't needed. It'll just work. |
Since travis is already in use, I guess one path forward would be to have travis push the images to dockerhub per release/commit. Would that be an option? |
Making some good progress with the Travis route. Should have an initial PR in a day or two. :) |
Would it be possible to provide official arm64 images on DockerHub?
The text was updated successfully, but these errors were encountered: