Documentation ¶
Index ¶
Constants ¶
View Source
const TypeName = "default"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultDockerBuilder ¶
func NewDefaultDockerBuilder(buildArgs []string, buildArgsScript string) distgo.DockerBuilder
func NewDefaultDockerBuilderWithOptions ¶ added in v1.50.0
func NewDefaultDockerBuilderWithOptions(options ...Option) distgo.DockerBuilder
Types ¶
type DefaultDockerBuilder ¶
type DefaultDockerBuilder struct { BuildArgs []string BuildArgsScript string BuildxDriverOpts []string BuildxPlatformArg string OutputType OutputType }
func (*DefaultDockerBuilder) RunDockerBuild ¶
func (d *DefaultDockerBuilder) RunDockerBuild(dockerID distgo.DockerID, productTaskOutputInfo distgo.ProductTaskOutputInfo, verbose, dryRun bool, stdout io.Writer) error
func (*DefaultDockerBuilder) TypeName ¶
func (d *DefaultDockerBuilder) TypeName() (string, error)
type Option ¶ added in v1.50.0
type Option func(*DefaultDockerBuilder)
func WithBuildArgs ¶ added in v1.50.0
func WithBuildArgsScript ¶ added in v1.50.0
func WithBuildxDriverOptions ¶ added in v1.50.0
func WithBuildxOutput ¶ added in v1.50.0
func WithBuildxOutput(output OutputType) Option
func WithBuildxPlatforms ¶ added in v1.50.0
WithBuildxPlatforms allows buildx builds to produce multi-platform images. The formatting for the platform specifier is defined in the containerd source code. https://github.com/containerd/containerd/blob/v1.4.3/platforms/platforms.go#L63
type OutputType ¶ added in v1.50.0
type OutputType uint
OutputType is a bitmask which specifies which artifacts to produce as part of the docker build. At least one build type must be specified, but multiple build types can be combined
const ( // OCILayout output type indicates that the build should produce an OCI-compliant filesystem layout as an output OCILayout OutputType = 1 << iota // DockerDaemon output type indicates that the build should produce an image in the local docker daemon DockerDaemon )
Directories ¶
Path | Synopsis |
---|---|
Package integration contains the integration tests for distgo.
|
Package integration contains the integration tests for distgo. |
Click to show internal directories.
Click to hide internal directories.