build

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, c client.Client) (*client.Result, error)

Types

type CopyFrom

type CopyFrom struct {
	Directory  string            `yaml:"directory"`
	Image      string            `yaml:"image"`
	Dockerfile string            `yaml:"dockerfile"`
	Path       string            `yaml:"path"`
	Env        map[string]string `yaml:"env"`
}

type Download

type Download struct {
	Source      string `yaml:"source"`
	Sha256      string `yaml:"sha256"`
	Unpack      string `yaml:"unpack"`
	Destination string `yaml:"destination"`
}

type Image

type Image struct {
	BaseImage string            `yaml:"base_image"`
	User      *User             `yaml:"user"`
	Env       map[string]string `yaml:"env"`
	Packages  *Packages         `yaml:"packages"`
	Download  []*Download       `yaml:"download"`
	From      []*CopyFrom       `yaml:"from"`
	Run       []*Run            `yaml:"run"`
}

func GetConfig

func GetConfig(ctx context.Context, c client.Client) (*Image, error)

func (*Image) Build

func (img *Image) Build() (llb.State, dockerfile2llb.Image)

type Packages

type Packages struct {
	Name []string `yaml:"name"`
	Repo []string `yaml:"repo"`
	Gpg  []string `yaml:"gpg"`
}

type Run

type Run struct {
	Script string `yaml:"script"`
	User   string `yaml:"user"`
	Cwd    string `yaml:"cwd"`
}

type User

type User struct {
	Name     string `yaml:"name"`
	UID      int    `yaml:"uid"`
	GID      int    `yaml:"gid"`
	Shell    string `yaml:"shell"`
	Dotfiles string `yaml:"dotfiles"`
}

Jump to

Keyboard shortcuts

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