spiegel_podman/cmd/podman/cliconfig/create.go
TomSweeneyRedHat beadd2694b Add squash-all, fix squash option in build
Translate the podman build --squash command to podman build --layers=false which
has the same functionality as docker build --squash. Add a new option --squash-all
which will squash all layers into one. This will be translated to buildah bud --squash
for the buildah bud api.

Also allow only one option, squash, layers or squash--all to be used per build command.

Fixes: https://github.com/containers/buildah/issues/1234

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-10-11 13:28:38 -04:00

35 lines
591 B
Go

package cliconfig
import (
buildahcli "github.com/containers/buildah/pkg/cli"
)
type CreateValues struct {
PodmanCommand
}
type RunValues struct {
PodmanCommand
}
// PodmanBuildResults represents the results for Podman Build flags
// that are unique to Podman.
type PodmanBuildResults struct {
SquashAll bool
}
type BuildValues struct {
PodmanCommand
*buildahcli.BudResults
*buildahcli.UserNSResults
*buildahcli.FromAndBudResults
*buildahcli.LayerResults
*buildahcli.NameSpaceResults
*PodmanBuildResults
}
type CpValues struct {
PodmanCommand
Extract bool
Pause bool
}