docker

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 13 Imported by: 5

Documentation

Index

Constants

View Source
const DefaultBuildPlatform = "linux/amd64"

DefaultBuildPlatform is the platform service images target when the caller does not specify one. Deployment images are pulled onto amd64 nodes, so the build must produce amd64 regardless of the host's native architecture — otherwise an image built on Apple Silicon (arm64) is pushed and then crashes with `exec format error` on the cluster.

Variables

This section is empty.

Functions

func IsValidDockerImageName added in v0.1.39

func IsValidDockerImageName(_ string) bool

Types

type Builder

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

func NewBuilder

func NewBuilder(cfg BuilderConfiguration) (*Builder, error)

func (*Builder) Build

func (builder *Builder) Build(ctx context.Context) (*BuilderOutput, error)

type BuilderConfiguration

type BuilderConfiguration struct {
	Root        string
	Dockerfile  string
	Ignorefile  string
	Destination *resources.DockerImage
	// Platform is the target build platform (e.g. "linux/amd64"). Empty means
	// DefaultBuildPlatform.
	Platform string
	Output   io.Writer
}

type BuilderOutput

type BuilderOutput struct {
	// Image is the fully-qualified tag of the image that was built.
	Image string
}

type Env

type Env struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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