docker

package
v0.0.0-...-ce92fef Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 22 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 Component

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

Component contains all information to build a container image

func NewComponent

func NewComponent(c *manifest.InvocationImage, cli *command.DockerCli) *Component

NewComponent returns a new Docker component based on the manifest

func (Component) Build

func (dc Component) Build(ctx context.Context, app *builder.AppContext) error

Build builds the docker images.

func (Component) Digest

func (dc Component) Digest() string

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

TODO - return the actual digest

func (Component) Name

func (dc Component) Name() string

Name is the component name

func (*Component) PrepareBuild

func (dc *Component) PrepareBuild(ctx *builder.Context) error

PrepareBuild archives the component directory and loads it as Docker context

func (Component) Type

func (dc Component) Type() string

Type represents the component type

func (Component) URI

func (dc Component) 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