-
Notifications
You must be signed in to change notification settings - Fork 638
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 CPU variant to image config #777
Conversation
e285a24
to
5f30317
Compare
This commit adds the CPU variant to the image config type. It also refactors the image index specification to isolate the platform variant specifications, allowing a reference from the config spec. The go specs are updated to include the new field in the v1.Image struct, and tests are updated to include the new field. Signed-off-by: Chris Price <chris.price@docker.com>
5f30317
to
c2ffe2d
Compare
This is also upstreaming a change in buildkit and soon to be in moby. https://github.com/moby/buildkit/blob/9a18f8040332acebbb8a9a21772560ab99d7fdaa/frontend/dockerfile/dockerfile2llb/image.go#L55 Note this change is useful for builders which create indexes from a list of manifests. The manifest links to the config, however today the config does not contain all the information needed to correctly construct an index containing 32-bit ARM images. A larger change such as adding the entire platform would complicate client compatibility, further hindering the ARM use cases. With this change clients need only to update the |
This came up in today's OCI call (cc @ibuildthecloud), and I think this only solves part of the issue, right? We're still missing |
Adding the full |
I'd be in favor of embedding the whole |
Agree, let's bring in the whole platform object. |
Carried these changes in #809 |
This commit adds the CPU variant to the image config type. It also
refactors the image index specification to isolate the platform
variant specifications, allowing a reference from the config spec.
The go specs are updated to include the new field in the v1.Image
struct, and tests are updated to include the new field.
Signed-off-by: Chris Price chris.price@docker.com