-
Notifications
You must be signed in to change notification settings - Fork 328
Add multi build support #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multi build support #24
Conversation
|
(disclaimer: I'm not on the VS Code team, so will defer to @chrmarti - my comments are those of an interested observer and someone who has made some contributions in similar areas of the code 😄) Hi @juzuluag, this looks pretty cool - being able to create multi-platform dev container images would be really useful I think. Especially building them in CI and publishing so that they can be referenced in the There has been some recent work here that shifts to using BuildKit/buildx by default (if it is present) for With the buildx work, I think that For the I also think that it would be good to add some tests for the |
|
Hi @chrmarti and @stuartleeks , any chance to look at the most recent changes? Thanks. |
|
+1 on this feature request, would be very helpful for my team and our tooling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @juzuluag. Added a few more comments.
|
Could we be able to prioritize this PR? cc @chrmarti I am working on devcontainers/images to create images based on features by using the devcontainers/cli. We are looking forward to publish these images, but can't yet as they need to be built with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @juzuluag !
Work Item ID
Description
Enhance
devcontainerCLI build command by adding an option to build multi-platform container images and to push them to a container registry.devcontainer build command will be enhanced with the following arguments:
--platform value1, value2. Comma delimited string with platform types [string].
i.e. value: linux/amd64,linux/arm64
--push push to a container registry [boolean] [default: false]
PR Checklist
Does this introduce a breaking change?
Testing
Manual testing:
List manifest from container registry
docker buildx imagetools inspect dockerhubuname/test1:v1 Name: docker.io/dockerhubuname/test1:v1 MediaType: application/vnd.docker.distribution.manifest.list.v2+json Digest: sha256:00b62d385953096b5b09ba1458d0e2467b53b3c6d2409958a67eabd68f4fa0a0 Manifests: Name: docker.io/dockerhubuname/test1:v1@sha256:a18591ab9c4d416b9ee5b86c1b66c5ff9b89f8b8b522bc3d26db1395bd736f34 MediaType: application/vnd.docker.distribution.manifest.v2+json Platform: linux/arm64 Name: docker.io/dockerhubuname/test1:v1@sha256:4ae8b07ea9a8c61da4a06548d758fc27709408b79d52d293bdc0edb940041576 MediaType: application/vnd.docker.distribution.manifest.v2+json Platform: linux/amd64Other information or known dependencies
n/a