mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-10 01:27:54 +00:00
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>
35 lines
591 B
Go
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
|
|
}
|