mirror of
https://github.com/containers/podman.git
synced 2025-11-14 18:19:20 +08:00
rootfs: Add support for rootfs-overlay and bump to buildah v1.22.1-0.202108
Allows users to specify a readonly rootfs with :O, in exchange podman will create a writable overlay. bump builah to v1.22.1-0.20210823173221-da2b428c56ce [NO TESTS NEEDED] Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
10
vendor/github.com/containers/buildah/define/build.go
generated
vendored
10
vendor/github.com/containers/buildah/define/build.go
generated
vendored
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/containers/image/v5/types"
|
||||
encconfig "github.com/containers/ocicrypt/config"
|
||||
"github.com/containers/storage/pkg/archive"
|
||||
"golang.org/x/sync/semaphore"
|
||||
)
|
||||
|
||||
// CommonBuildOptions are resources that can be defined by flags for both buildah from and build-using-dockerfile
|
||||
@@ -71,6 +72,8 @@ type CommonBuildOptions struct {
|
||||
Volumes []string
|
||||
// Secrets are the available secrets to use in a build
|
||||
Secrets []string
|
||||
// SSHSources is the available ssh agent connections to forward in the build
|
||||
SSHSources []string
|
||||
}
|
||||
|
||||
// BuildOptions can be used to alter how an image is built.
|
||||
@@ -214,7 +217,10 @@ type BuildOptions struct {
|
||||
// encrypted if non-nil. If nil, it does not attempt to decrypt an image.
|
||||
OciDecryptConfig *encconfig.DecryptConfig
|
||||
// Jobs is the number of stages to run in parallel. If not specified it defaults to 1.
|
||||
// Ignored if a JobSemaphore is provided.
|
||||
Jobs *int
|
||||
// JobSemaphore, for when you want Jobs to be shared with more than just this build.
|
||||
JobSemaphore *semaphore.Weighted
|
||||
// LogRusage logs resource usage for each step.
|
||||
LogRusage bool
|
||||
// File to which the Rusage logs will be saved to instead of stdout
|
||||
@@ -224,4 +230,8 @@ type BuildOptions struct {
|
||||
// From is the image name to use to replace the value specified in the first
|
||||
// FROM instruction in the Containerfile
|
||||
From string
|
||||
// Platforms is the list of parsed OS/Arch/Variant triples that we want
|
||||
// to build the image for. If this slice has items in it, the OS and
|
||||
// Architecture fields above are ignored.
|
||||
Platforms []struct{ OS, Arch, Variant string }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user