Skip to content

Support multi-architecture builds in the devcontainer CLI #5652

Closed

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

clicontainersIssue in vscode-remote containersplan-itemA plan item

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions