Skip to content

Commit

Permalink
Update docker_multiarch.md
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Nola <[email protected]>
  • Loading branch information
thomasferrandiz and dereknola authored Apr 3, 2024
1 parent af0e5ee commit 9bc0cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion developer-docs/docker_multiarch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
We build [many upstream components](https://github.com/rancher/ecm-distro-tools/issues/375) as Docker images as part of rke2 and we now use multi-arch images that include both amd64 and arm64 layers in the same image.

During the migration of these builds from Drone to Github Actions, we noticed that the arm64 build is very slow due to the fact that most Dockerfiles use qemu emulation to build the arm64 version of the image.
Using multi-arch best practices as document by Docker would allow us to use cross-compilation instead of emulation for most of the process and would greatly reduce the build time.
Using multi-arch best practices as documented by Docker would allow us to use cross-compilation instead of emulation for most of the process and would greatly reduce the build time.

For example, with `image-build-coredns`, the build time for the arm64 image goes from 14mn to 2mn (similar to amd64) when using cross-compilation instead of emulation.

Expand Down

0 comments on commit 9bc0cbe

Please sign in to comment.