Documentation ¶
Index ¶
- Constants
- func BuildahWithFuseDockerArgs(storageContainerName, dockerConfigDir string) []string
- func NativeRootlessProcessStartupHook() bool
- func ProcessStartupHook(mode Mode) (bool, error)
- type BaseBuildah
- type BaseBuildahOpts
- type BuildFromDockerfileOpts
- type Buildah
- type BuildahOpts
- type CommonBuildahOpts
- type CommonOpts
- type DockerWithFuseBuildah
- func (b *DockerWithFuseBuildah) BuildFromDockerfile(ctx context.Context, dockerfile []byte, opts BuildFromDockerfileOpts) (string, error)
- func (b *DockerWithFuseBuildah) FromCommand(ctx context.Context, container string, image string, opts FromCommandOpts) (string, error)
- func (b *DockerWithFuseBuildah) Inspect(ctx context.Context, ref string) (*types.BuilderInfo, error)
- func (b *DockerWithFuseBuildah) Mount(ctx context.Context, container string, opts MountOpts) (string, error)
- func (b *DockerWithFuseBuildah) Pull(ctx context.Context, ref string, opts PullOpts) error
- func (b *DockerWithFuseBuildah) Push(ctx context.Context, ref string, opts PushOpts) error
- func (b *DockerWithFuseBuildah) Rmi(ctx context.Context, ref string, opts RmiOpts) error
- func (b *DockerWithFuseBuildah) RunCommand(ctx context.Context, container string, command []string, opts RunCommandOpts) error
- func (b *DockerWithFuseBuildah) Tag(ctx context.Context, ref, newRef string, opts TagOpts) error
- func (b *DockerWithFuseBuildah) Umount(ctx context.Context, container string, opts UmountOpts) error
- type DockerWithFuseModeOpts
- type FromCommandOpts
- type Mode
- type MountOpts
- type NativeRootlessBuildah
- func (b *NativeRootlessBuildah) BuildFromDockerfile(ctx context.Context, dockerfile []byte, opts BuildFromDockerfileOpts) (string, error)
- func (b *NativeRootlessBuildah) FromCommand(ctx context.Context, container string, image string, opts FromCommandOpts) (string, error)
- func (b *NativeRootlessBuildah) Inspect(ctx context.Context, ref string) (*types.BuilderInfo, error)
- func (b *NativeRootlessBuildah) Mount(ctx context.Context, container string, opts MountOpts) (string, error)
- func (b *NativeRootlessBuildah) Pull(ctx context.Context, ref string, opts PullOpts) error
- func (b *NativeRootlessBuildah) Push(ctx context.Context, ref string, opts PushOpts) error
- func (b *NativeRootlessBuildah) Rmi(ctx context.Context, ref string, opts RmiOpts) error
- func (b *NativeRootlessBuildah) RunCommand(ctx context.Context, container string, command []string, opts RunCommandOpts) error
- func (b *NativeRootlessBuildah) Tag(_ context.Context, ref, newRef string, opts TagOpts) error
- func (b *NativeRootlessBuildah) Umount(ctx context.Context, container string, opts UmountOpts) error
- type NativeRootlessModeOpts
- type PullOpts
- type PushOpts
- type RmiOpts
- type RunCommandOpts
- type RunMount
- type TagOpts
- type UmountOpts
Constants ¶
View Source
const ( DefaultShmSize = "65536k" BuildahImage = "ghcr.io/werf/buildah:v1.22.3-1" BuildahStorageContainerName = "werf-buildah-storage" )
View Source
const ( MaxPullPushRetries = 3 PullPushRetryDelay = 2 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func BuildahWithFuseDockerArgs ¶ added in v1.2.35
func NativeRootlessProcessStartupHook ¶
func NativeRootlessProcessStartupHook() bool
func ProcessStartupHook ¶
Types ¶
type BaseBuildah ¶
func NewBaseBuildah ¶
func NewBaseBuildah(tmpDir string, opts BaseBuildahOpts) (*BaseBuildah, error)
func (*BaseBuildah) NewSessionTmpDir ¶
func (b *BaseBuildah) NewSessionTmpDir() (string, error)
type BaseBuildahOpts ¶ added in v1.2.35
type BaseBuildahOpts struct {
Insecure bool
}
type BuildFromDockerfileOpts ¶
type BuildFromDockerfileOpts struct { CommonOpts ContextTar io.Reader BuildArgs map[string]string }
type Buildah ¶
type Buildah interface { Tag(ctx context.Context, ref, newRef string, opts TagOpts) error Push(ctx context.Context, ref string, opts PushOpts) error BuildFromDockerfile(ctx context.Context, dockerfile []byte, opts BuildFromDockerfileOpts) (string, error) RunCommand(ctx context.Context, container string, command []string, opts RunCommandOpts) error FromCommand(ctx context.Context, container string, image string, opts FromCommandOpts) (string, error) Pull(ctx context.Context, ref string, opts PullOpts) error Inspect(ctx context.Context, ref string) (*types.BuilderInfo, error) Rmi(ctx context.Context, ref string, opts RmiOpts) error Mount(ctx context.Context, container string, opts MountOpts) (string, error) Umount(ctx context.Context, container string, opts UmountOpts) error }
func NewBuildah ¶
func NewBuildah(mode Mode, opts BuildahOpts) (b Buildah, err error)
type BuildahOpts ¶
type BuildahOpts struct { CommonBuildahOpts DockerWithFuseModeOpts NativeRootlessModeOpts }
type CommonBuildahOpts ¶
type CommonOpts ¶
type DockerWithFuseBuildah ¶
type DockerWithFuseBuildah struct {
BaseBuildah
}
func NewDockerWithFuseBuildah ¶
func NewDockerWithFuseBuildah(commonOpts CommonBuildahOpts, opts DockerWithFuseModeOpts) (*DockerWithFuseBuildah, error)
func (*DockerWithFuseBuildah) BuildFromDockerfile ¶
func (b *DockerWithFuseBuildah) BuildFromDockerfile(ctx context.Context, dockerfile []byte, opts BuildFromDockerfileOpts) (string, error)
func (*DockerWithFuseBuildah) FromCommand ¶
func (b *DockerWithFuseBuildah) FromCommand(ctx context.Context, container string, image string, opts FromCommandOpts) (string, error)
func (*DockerWithFuseBuildah) Inspect ¶
func (b *DockerWithFuseBuildah) Inspect(ctx context.Context, ref string) (*types.BuilderInfo, error)
TODO(ilya-lesikov): make it more generic to handle not only images
func (*DockerWithFuseBuildah) RunCommand ¶
func (b *DockerWithFuseBuildah) RunCommand(ctx context.Context, container string, command []string, opts RunCommandOpts) error
func (*DockerWithFuseBuildah) Umount ¶ added in v1.2.46
func (b *DockerWithFuseBuildah) Umount(ctx context.Context, container string, opts UmountOpts) error
type DockerWithFuseModeOpts ¶
type DockerWithFuseModeOpts struct{}
type FromCommandOpts ¶
type FromCommandOpts CommonOpts
type MountOpts ¶ added in v1.2.46
type MountOpts CommonOpts
type NativeRootlessBuildah ¶
type NativeRootlessBuildah struct { BaseBuildah Store storage.Store Runtime libimage.Runtime }
func NewNativeRootlessBuildah ¶
func NewNativeRootlessBuildah(commonOpts CommonBuildahOpts, opts NativeRootlessModeOpts) (*NativeRootlessBuildah, error)
func (*NativeRootlessBuildah) BuildFromDockerfile ¶
func (b *NativeRootlessBuildah) BuildFromDockerfile(ctx context.Context, dockerfile []byte, opts BuildFromDockerfileOpts) (string, error)
func (*NativeRootlessBuildah) FromCommand ¶
func (b *NativeRootlessBuildah) FromCommand(ctx context.Context, container string, image string, opts FromCommandOpts) (string, error)
func (*NativeRootlessBuildah) Inspect ¶
func (b *NativeRootlessBuildah) Inspect(ctx context.Context, ref string) (*types.BuilderInfo, error)
Inspect returns nil, nil if image not found.
func (*NativeRootlessBuildah) RunCommand ¶
func (b *NativeRootlessBuildah) RunCommand(ctx context.Context, container string, command []string, opts RunCommandOpts) error
func (*NativeRootlessBuildah) Umount ¶ added in v1.2.46
func (b *NativeRootlessBuildah) Umount(ctx context.Context, container string, opts UmountOpts) error
type NativeRootlessModeOpts ¶
type NativeRootlessModeOpts struct{}
type PullOpts ¶
type PullOpts CommonOpts
type PushOpts ¶
type PushOpts CommonOpts
type RmiOpts ¶
type RmiOpts struct { CommonOpts Force bool }
type RunCommandOpts ¶
type RunCommandOpts struct { CommonOpts Args []string Mounts []specs.Mount }
type TagOpts ¶
type TagOpts CommonOpts
type UmountOpts ¶ added in v1.2.46
type UmountOpts CommonOpts
Source Files ¶
Click to show internal directories.
Click to hide internal directories.