Skip to content

Commit

Permalink
Merge pull request #3103 from thaJeztah/image_remove_variant
Browse files Browse the repository at this point in the history
exporter/containerimage/image: Image: remove custom Variant field
  • Loading branch information
tonistiigi authored Sep 10, 2022
2 parents abde08a + 6ea70c5 commit 9cc806a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions exporter/containerimage/image/docker_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,4 @@ type Image struct {

// Config defines the execution parameters which should be used as a base when running a container using the image.
Config ImageConfig `json:"config,omitempty"`

// Variant defines platform variant. To be added to OCI.
Variant string `json:"variant,omitempty"`
}
2 changes: 1 addition & 1 deletion frontend/dockerfile/dockerfile2llb/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func emptyImage(platform ocispecs.Platform) Image {
Image: ocispecs.Image{
Architecture: platform.Architecture,
OS: platform.OS,
Variant: platform.Variant,
},
Variant: platform.Variant,
}
img.RootFS.Type = "layers"
img.Config.WorkingDir = "/"
Expand Down

0 comments on commit 9cc806a

Please sign in to comment.