Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildKit ¶
type BuildKit struct {
// contains filtered or unexported fields
}
BuildKit is a wrapper around BuildKit that provides a simplified interface for building OCI images using BuildKit running in a Docker container.
func (*BuildKit) Build ¶
func (b *BuildKit) Build(ctx context.Context, opts BuildOptions) error
Build builds an OCI image tarball using BuildKit.
func (*BuildKit) StartDaemon ¶
StartDaemon starts the BuildKit daemon in a Docker container (if it is not already running).
type BuildOptions ¶ added in v0.9.0
type BuildOptions struct { // OCIArchivePath is the path to the output OCI image tarball. OCIArchivePath string // RecipePath is the path to the debco recipe file. RecipePath string // SourceDateEpoch is the source date epoch for the image. SourceDateEpoch time.Time // SecondStageBinaryPath optionally overrides the path to the second-stage binary. SecondStageBinaryPath string // ImageConf is the optional OCI image configuration. ImageConf ocispecs.ImageConfig // Tags is a list of tags to apply to the image. Tags []string // PlatformOpts is a list of platform build options. PlatformOpts []PlatformBuildOptions }
type PlatformBuildOptions ¶ added in v0.9.0
type PlatformBuildOptions struct { // Platform is the platform to build the image for. Platform ocispecs.Platform // BuildContextDir is the path to the build context directory. BuildContextDir string // DpkgConfArchivePath is the path to the dpkg configuration archive. // The path must be relative to the build context directory. DpkgConfArchivePath string // DataArchivePaths is a list of paths to package data archives. // The paths must be relative to the build context directory. DataArchivePaths []string }
Click to show internal directories.
Click to hide internal directories.