Help us shape the future of Go! Take the 2026 Go Developer Survey

imagebuild

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package imagebuild builds the images of a Compose project's `build:` sections with go-wasmcontainers/build, through the engine's API: the context is read from the project's file system (never outside it), the Containerfile (or Dockerfile, or dockerfile_inline) with it.

Index

Constants

View Source
const MaxContainerfile = 1 << 20

MaxContainerfile bounds a Containerfile (build's own bound).

Variables

This section is empty.

Functions

func New

func New(o Options) compose.BuildFunc

New returns a compose.BuildFunc building with go-wasmcontainers/build.

Types

type Options

type Options struct {
	// FS is the project's file system (compose.Options.FS).
	FS fs.FS
	// Client reaches the engine.
	Client *api.Client
	// Cache keeps build steps between builds (nil: one per build).
	Cache builder.Cache
	// Out receives the build's progress (nil: discarded).
	Out io.Writer
	// Limits bound the context (zero: buildcontext.DefaultLimits).
	Limits buildcontext.Limits
	// Warn receives the build's warnings (nil: dropped).
	Warn func(string)
}

Options configure the builder.

Jump to

Keyboard shortcuts

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