Add CPU variant to image config#777
Conversation
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>
|
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