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

Build Docker images for linux/arm64 as well #290

Closed
wants to merge 1 commit into from

Conversation

rasky
Copy link
Collaborator

@rasky rasky commented Jul 12, 2022

While Macbooks with M1 can run linux/amd64 images, it is unbearably
slow. Building and publishing a linux/arm64 image provides a much
better experience.

@rasky rasky force-pushed the docker_build_arm branch 3 times, most recently from 17c55f3 to 0a59f7a Compare July 12, 2022 22:22
@vieux
Copy link
Contributor

vieux commented Jul 12, 2022

Looks like a custom builder might help docker/buildx#495 (comment)

While Macbooks with M1 can run linux/amd64 images, it is unbearably
slow. Building and publishing a linux/arm64 image provides a much
better experience.
@rasky
Copy link
Collaborator Author

rasky commented Jul 12, 2022

@vieux thanks, I'm trying with a suggestion from that thread

@rasky
Copy link
Collaborator Author

rasky commented Jul 13, 2022

Unfortunately, just like using docker images for amd64 is too slow on Apple M1, running docker arm64 on a amd64 server (GitHub action) is just as slow, and the CI hits the hard limit of 6 hours per job.

I think for now I’ll just see if I can push the ARM image manually into the registry. For CI, we will have to either wait for GitHub to provide native ARM runners, or to cross-compile the ARM->MIPS compiler from amd64, which is a complex modification of the build script. Either way, this PR won’t fly for now.

@rasky rasky closed this Jul 13, 2022
@rasky rasky deleted the docker_build_arm branch July 13, 2022 05:27
@rasky rasky restored the docker_build_arm branch July 13, 2022 05:27
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

Successfully merging this pull request may close these issues.

2 participants