builder

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder builds a configured Docker image from a source tree.

func NewBuilder

func NewBuilder(
	le *logrus.Entry,
	conf *config.ConfigImageBuild,
	workDir string,
) (*Builder, error)

NewBuilder constructs an image builder.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) error

Build fetches the configured source and builds its Docker image.

func (*Builder) SetOutputStream added in v1.7.1

func (b *Builder) SetOutputStream(output io.Writer)

SetOutputStream sets the Docker build progress writer.

type ScratchBuilder added in v1.15.0

type ScratchBuilder struct {
	// contains filtered or unexported fields
}

ScratchBuilder builds a rebased scratchbuild image stack.

func NewScratchBuilder added in v1.15.0

func NewScratchBuilder(
	le *logrus.Entry,
	imageStack *stack.ImageStack,
	dockerClient client.APIClient,
) *ScratchBuilder

NewScratchBuilder constructs a scratchbuild image stack builder.

func (*ScratchBuilder) Build added in v1.15.0

func (b *ScratchBuilder) Build(ctx context.Context) error

Build validates and builds each layer in the image stack.

func (*ScratchBuilder) SetForceRemove added in v1.15.0

func (b *ScratchBuilder) SetForceRemove(forceRemove bool)

SetForceRemove controls removal of intermediate build containers.

func (*ScratchBuilder) SetOutputStream added in v1.15.0

func (b *ScratchBuilder) SetOutputStream(output io.Writer)

SetOutputStream sets the build progress writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL