[go: up one dir, main page]

Skip to content

ryan4yin/containers

Repository files navigation

ryan4yin's container images

Multi-arch images

There are several ways to build multi-arch images:

  1. Emulate(QEMU) the target architecture on the build machine
    • This is the most common way to build multi-arch images. The build machine emulates the target architecture using QEMU, and then builds the image as if it were running on the target architecture.
    • The downside of this approach is that it's slow, so it's not suitable for building images that need a lot comlication or IO operations.
  2. Use cross-compilation to build the image
  3. Native Build, Build each architecture's image on a machine with that architecture, and then merge the images into a single multi-arch image
    • This approach is the fastest, but the workflow will be more complex.
    • It's ideal for building images that has a complex compile process and is hard to cross-compile.

Useful build tools: buildkit.

Useful Build Pipelines: Github Actions, Gitlab CI/CD, act, gitea/act_runner etc.

About

ryan4yin's container images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages