Description
openedon Sep 29, 2021
Currently, the devcontainer build
command will build for your current architecture. While this has worked well historically, the arrival of M1 macs has created a challenge particularly for CI systems (that are nearly always running x86) to generate both x86 and arm64 images.
To resolve this, we could provide an option that will buildx
to build multiple architectures (or the equivalant command for other docker-esque clis we end up supporting). However, note that the buildx --load
option that makes the image available for local use does not support multiple --platform
values today. As a result, if a single platform is specified we can use the load option, otherwise we would not. We can also expose something analogous to --push
to automatically push to image registries.
//cc @chrmarti @joshspicer