build

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(name string, arg ...string) error

Types

type Context

type Context struct {
	ImageConfiguration types.ImageConfiguration
	WorkDir            string
	TarballPath        string
}

func (*Context) BuildImage

func (bc *Context) BuildImage() error

Builds the image in Context.WorkDir.

func (*Context) BuildLayer

func (bc *Context) BuildLayer() (string, error)

func (*Context) BuildTarball

func (bc *Context) BuildTarball() (string, error)

func (*Context) CreateSupervisionDirectory

func (bc *Context) CreateSupervisionDirectory(name string) (string, error)

func (*Context) FixateApkWorld

func (bc *Context) FixateApkWorld() error

Force apk's resolver to re-resolve the requested dependencies in /etc/apk/world.

func (*Context) InitApkDB

func (bc *Context) InitApkDB() error

Initialize the APK database for a given build context. It is assumed that the build context itself is properly set up, and that `bc.WorkDir` is set to the path of a working directory.

func (*Context) InitApkKeyring

func (bc *Context) InitApkKeyring() (err error)

Installs the specified keys into the APK keyring inside the build context.

func (*Context) InitApkRepositories

func (bc *Context) InitApkRepositories() error

Generates a specified /etc/apk/repositories file in the build context.

func (*Context) InitApkWorld

func (bc *Context) InitApkWorld() error

Generates a specified /etc/apk/world file in the build context.

func (*Context) Summarize

func (bc *Context) Summarize()

func (*Context) WriteSupervisionServiceSimple

func (bc *Context) WriteSupervisionServiceSimple(name string, command string) error

func (*Context) WriteSupervisionTemplate

func (bc *Context) WriteSupervisionTemplate(svcdir string, command string) error

func (*Context) WriteSupervisionTree

func (bc *Context) WriteSupervisionTree() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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