moby--moby/builder
Sebastiaan van Stijn 3cb933db9d
Update uses of Image platform fields in OCI image-spec
The OCI image spec is considering to change the Image struct and embedding the
Platform type (see opencontainers/image-spec#959) in the go implementation.
Moby currently uses some struct-literals to propagate the platform fields,
which will break once those changes in the OCI spec are merged.

Ideally (once that change arrives) we would update the code to set the Platform
information as a whole, instead of assigning related fields individually, but
in some cases in the code, image platform information is only partially set
(for example, OSVersion and OSFeatures are not preserved in all cases). This
may be on purpose, so needs to be reviewed.

This patch keeps the current behavior (assigning only specific fields), but
removes the use of struct-literals to make the code compatible with the
upcoming changes in the image-spec module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-09-10 12:09:06 +02:00
..
builder-next Update uses of Image platform fields in OCI image-spec 2022-09-10 12:09:06 +02:00
dockerfile daemon, builder: rename variables that collided with imports 2022-08-08 13:16:10 +02:00
remotecontext pkg/archive: remove backward compat hack for go < 1.9 2022-09-04 21:44:02 +02:00
builder.go daemon: daemon.ContainerKill() accept stop-signal as string 2022-05-05 11:27:47 +02:00