Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasferrandiz committed Apr 3, 2024
1 parent 540c732 commit af0e5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions developer-docs/docker_multiarch.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af0e5ee

Please sign in to comment.