build

package
v0.0.0-...-5b8b77a Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build interface {
	AddInstructions(...interface{}) error
	CreateContext(rootfs.Resources) (*rootfs.WorkContext, error)
	EntrypointInfo() *EntrypointInfo
	ExposedPorts() []string
	From() commands.From
	Metadata() map[string]string
	Volumes() []string
	WithBuildArgs(map[string]string) Build
	WithExcludes([]string) Build
	WithLogger(hclog.Logger) Build
	WithPostBuildCommands(...commands.Run) Build
	WithPreBuildCommands(...commands.Run) Build
	WithResolver(resources.Resolver) Build
}

Build represents the build operation.

func NewDefaultBuild

func NewDefaultBuild() Build

NewDefaultBuild returns an instance of the default Build implementation.

type DependencyBuild

type DependencyBuild interface {
	Build([]commands.Copy) ([]resources.ResolvedResource, error)
	WithLogger(hclog.Logger) DependencyBuild
	// contains filtered or unexported methods
}

DependencyBuild represents the build process of the main FS dependency. This builds a stage using Docker and extracts the required contents from the build.

func NewDefaultDependencyBuild

func NewDefaultDependencyBuild(st stage.Stage, tempDir, contextDir string) DependencyBuild

NewDefaultDependencyBuild creates a new dependency builder using the default implementation.

type EntrypointInfo

type EntrypointInfo struct {
	Cmd        commands.Cmd        `json:"Cmd" mapstructure:"Cmd"`
	Entrypoint commands.Entrypoint `json:"Entrypoint" mapstructure:"Entrypoint"`
}

EntrypointInfo contains the Docker entrypoint and commands. Returned by the rootfs builder after parsing the Docker source. Used primarily for metadata.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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