docker

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const EngineName = "docker"

EngineName is the name of the building engine

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder holds the necessary information to build and push docker images

func NewBuilder

func NewBuilder(config *latest.Config, client dockerclient.Client, kubeClient kubectl.Client, imageConfigName string, imageConf *latest.ImageConfig, imageTag string, skipPush, isDev bool) (*Builder, error)

NewBuilder creates a new docker Builder instance

func (*Builder) Authenticate

func (b *Builder) Authenticate() (*types.AuthConfig, error)

Authenticate authenticates the client with a remote registry

func (*Builder) Build

func (b *Builder) Build(log logpkg.Logger) error

Build implements the interface

func (*Builder) BuildImage

func (b *Builder) BuildImage(contextPath, dockerfilePath string, entrypoint []string, cmd []string, log logpkg.Logger) error

BuildImage builds a dockerimage with the docker cli contextPath is the absolute path to the context path dockerfilePath is the absolute path to the dockerfile WITHIN the contextPath

func (*Builder) PushImage

func (b *Builder) PushImage(writer io.Writer) error

PushImage pushes an image to the specified registry

func (*Builder) ShouldRebuild

func (b *Builder) ShouldRebuild(cache *generated.CacheConfig, forceRebuild, ignoreContextPathChanges bool) (bool, error)

ShouldRebuild determines if an image has to be rebuilt

Jump to

Keyboard shortcuts

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