Skip to content
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 support for creating Arm64 Linux images #2552

Closed
rickardp opened this issue Jan 25, 2021 · 21 comments
Closed

Add support for creating Arm64 Linux images #2552

rickardp opened this issue Jan 25, 2021 · 21 comments

Comments

@rickardp
Copy link

Both Azure DevOps and GitHub Actions mention supporting Arm64 but only for self-hosted images. Not supporting them here means one would have to start over with a fresh image, which is a lot of work.

Being able to create an Arm64 image and deploy to scale set agents (at least on DevOps, unsure if GH supports it) at least makes the maintenance manageable.

@AlenaSviridenko
Copy link
Contributor

Hi @rickardp,
just to clarify, do you mean creating an image template with provisioners for installing software that can be used for setting up self-hosted runners with Linux Arm64?

@AlenaSviridenko
Copy link
Contributor

Hi!
After some discussions we have to decline this feature request, because we cannot provide templates for images that we cannot test on our side, since Azure doesn't support Arm64 yet. Not providing a template at all is better than provide a broken template, especially given the growing popularity of Arm64 architecture.

Hopefully, this approach will be changes in the future as we see the increasing demand on Arm64.
I am closing this issue. Please, feel free to create a new one in case of any other questions. Thanks.

@rickardp
Copy link
Author

rickardp commented Feb 2, 2021

I see your point. My use case is useless without any way to run the agent anyway, so this request was about getting a complete solution, including a place to run my images. I'm sure there is a use case for running build agents on Arm Mac mini's etc, but mine was about cloud hosted arm64 images.

I hope you guys reconsider this eventually as Arm will be an important use case.

@ArniDagur
Copy link

Azure doesn't support Arm64 yet

Would it be possible to use multiarch/qemu-user-static as dakale suggests in https://github.community/t/testing-against-multiple-architectures/17111/7?

@catthehacker
Copy link
Contributor

@ArniDagur you definitely can or you can use official Docker actions for setting up qemu/buildx and building Dockerfiles
https://github.com/marketplace/actions/docker-setup-qemu
https://github.com/marketplace/actions/docker-setup-buildx
https://github.com/marketplace/actions/build-and-push-docker-images

@christian-kreuzberger-dtx

For what it is worth, I tried that, and it's super slow... Build takes 5 times as long

@olehermanse
Copy link

olehermanse commented Jun 29, 2021

Hi!
After some discussions we have to decline this feature request, because we cannot provide templates for images that we cannot test on our side, since Azure doesn't support Arm64 yet. Not providing a template at all is better than provide a broken template, especially given the growing popularity of Arm64 architecture.

Hopefully, this approach will be changes in the future as we see the increasing demand on Arm64.
I am closing this issue. Please, feel free to create a new one in case of any other questions. Thanks.

@AlenaSviridenko Any update on this?

https://azure.microsoft.com/en-us/updates/azure-devops-pipelines-introduces-support-for-linuxarm64/

Edit: I see now that it's about Azure Pipelines, not cloud instances. I guess you have to wait for them to offer arm64 VMs. In that case, sorry for the noise.

@AlenaSviridenko
Copy link
Contributor

Correct, that is about support of arm64 for self-hosted machines, we have to wait for arm64 in Azure.

austinjp added a commit to jetson-nano-wheels/python3.6-numpy-1.19.4 that referenced this issue Aug 14, 2021
This is being tracked here: actions/runner-images#2552

This action looks interesting, but fails (predictably) with a message about the image not matching the host: https://github.com/uraimo/run-on-arch-action

A self-hosted runner (i.e. my personal laptop!) would be possible, but can execute arbitrary code, so I'm not going to do that in a public repo like this one. See https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners
@5HT2
Copy link

5HT2 commented Nov 7, 2021

This appears to now be supported by Azure, could someone take a look at this issue again?

https://azure.microsoft.com/en-us/updates/azure-devops-pipelines-introduces-support-for-linuxarm64/

@martin-g
Copy link

martin-g commented Nov 7, 2021

@L1ving See few comments above ^^

@5HT2
Copy link

5HT2 commented Nov 7, 2021

That's why I'm making a comment, it looks like it's supported on non-self hosted runners as well?

@5HT2
Copy link

5HT2 commented Nov 7, 2021

Oh. I pasted the wrong link

@panekj
Copy link
Contributor

panekj commented Apr 4, 2022

Azure introduces ARM64 https://azure.microsoft.com/en-us/blog/now-in-preview-azure-virtual-machines-with-ampere-altra-armbased-processors/

@ericdallo
Copy link

Should we re-open this issue since now it should be possible to use arm64 with GH ?

blurgyy added a commit to blurgyy/dt that referenced this issue Apr 4, 2022
…res"

This reverts commit 4438386.

Waiting for actions/runner-images#2552.

Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
@jerrychong25
Copy link

Azure introduces ARM64 https://azure.microsoft.com/en-us/blog/now-in-preview-azure-virtual-machines-with-ampere-altra-armbased-processors/

Thanks @panekj for sharing!

@ericdallo Yeah we need ARM64 Linux images so that can build in GitHub Actions soon! This will be very useful for developers.

@jkroepke
Copy link

jkroepke commented May 6, 2022

@jerrychong25 ARM64 Docker Images can be build on AMD64 runners. See https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md

@ruudk
Copy link

ruudk commented May 6, 2022

@jerrychong25 ARM64 Docker Images can be build on AMD64 runners. See https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md

Sure but it's super slow when building large images.

@jerrychong25
Copy link

@jerrychong25 ARM64 Docker Images can be build on AMD64 runners. See https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md

Sure but it's super slow when building large images.

Yes, hope that there is new ARM64 Linux images that can run normal speed like currently working Github Actions Linux images.

@pentamassiv
Copy link

I saw that a similar ticket was closed because it was a duplicate of this issue. Could this one then be reopened or will Linux on ARM64 not happen?

@erwan-joly
Copy link

@AlenaSviridenko can this issue be reopened please as it now see to be doable (azure support arm images)?

@pentamassiv
Copy link

I guess this is now tracked in #5631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests