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

Optimise Docker Build Time by Using Cross-Compilation Instead of QEMU for Multi-Architecture Builds #787

Closed
dlaw4608 opened this issue Jul 29, 2024 · 0 comments · Fixed by #802
Assignees
Labels
kind/enhancement New feature or request kind/investigation Spike into investigating something size/small

Comments

@dlaw4608
Copy link
Contributor

Issue:

I noticed when working with GitHub Actions for building Docker images that the build times were quite long, often exceeding 20 minutes. This delay is largely due to the use of QEMU for emulation, which, while supporting multi-architecture builds, significantly slows down the process.

Proposal:

To reduce build times and enhance efficiency, I propose switching from QEMU emulation to cross-compilation. Cross-compilation can significantly speed up the Docker build process by removing the overhead associated with QEMU emulation.

GitHub plans to offer free ARM runners later in the year, making the need for cross-compilation no longer relevant. However, in the meantime, I believe there is significant upside to improving our development workflows, shortening feedback loops, and speeding up deployment cycles.

An example can be found in a merged PR for limitador: refactor: cross compile for arm64 image build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request kind/investigation Spike into investigating something size/small
Projects
Status: Done
1 participant