build

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ImageNamePrefix = "drun"

ImageNamePrefix is the local image namespace used for built layer images.

Variables

This section is empty.

Functions

func Dockerfile

func Dockerfile(p config.Preset) string

Dockerfile renders the Dockerfile contents for a preset.

func EnsureImage

func EnsureImage(name string, p config.Preset, force bool) (string, error)

EnsureImage builds the layer image if not present (or if force is true). Returns the tag to run.

func ImageExists

func ImageExists(tag string) bool

ImageExists returns true if the local docker daemon has the given tag.

func NeedsBuild

func NeedsBuild(p config.Preset) bool

NeedsBuild reports whether the preset declares any layer.

func PrintBuild

func PrintBuild(name string, p config.Preset)

PrintBuild emits what EnsureImage would do without running it.

func Tag

func Tag(name string, p config.Preset) string

Tag computes the deterministic local image tag for a preset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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