diff --git a/developer-docs/docker_multiarch.md b/developer-docs/docker_multiarch.md index 2a5aadd639d..a7202b3b4b0 100644 --- a/developer-docs/docker_multiarch.md +++ b/developer-docs/docker_multiarch.md @@ -1,7 +1,7 @@ # Context 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 fo the 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. 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. @@ -56,7 +56,7 @@ These scripts include: The full documentation for these scripts is available [here](https://github.com/tonistiigi/xx). -Note that the doc recommends explictly setting the `CGO_ENABLED` variable which is done in `go-build-static.sh`. +Note that the doc recommends explicitly setting the `CGO_ENABLED` variable which is done in `go-build-static.sh`. # Set-up ```Dockerfile