docker

package
v0.0.0-...-cf7397b Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DockerignoreFilename is the filename for Docker's ignore file.
	DockerignoreFilename = ".dockerignore"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Image        string
	Dockerfile   string
	BuildContext io.ReadCloser
	// contains filtered or unexported fields
}

Builder contains all information to build a docker container image

func NewBuilder

func NewBuilder(c *manifest.InvocationImage, cli *command.DockerCli) *Builder

NewBuilder returns a new Docker builder based on the manifest

func (Builder) Build

func (db Builder) Build(ctx context.Context, log io.WriteCloser) error

Build builds the docker images.

func (Builder) Digest

func (db Builder) Digest() string

Digest returns the name of a Docker Builder, which will give the image name

TODO - return the actual digest

func (Builder) Name

func (db Builder) Name() string

Name is the name of the image to build

func (*Builder) PrepareBuild

func (db *Builder) PrepareBuild(appDir, registry, name string) error

PrepareBuild archives the app directory and loads it as Docker context

func (Builder) Type

func (db Builder) Type() string

Type represents the image type to build

func (Builder) URI

func (db Builder) URI() string

URI returns the image in the format <registry>/<image>

Jump to

Keyboard shortcuts

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