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.
Click to show internal directories.
Click to hide internal directories.