dockerfile

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAddInDockerfile = fmt.Errorf("base Dockerfile contains an ADD/COPY, " +
	"which is not currently supported -- move this to an add() call in your Tiltfile")

Functions

This section is empty.

Types

type Dockerfile

type Dockerfile string

func FromExisting

func FromExisting(existing reference.NamedTagged) Dockerfile

DockerfileFromExisting creates a new Dockerfile that uses the supplied image as its base image with a FROM statement. This is necessary for iterative Docker builds.

func (Dockerfile) AddAll

func (d Dockerfile) AddAll() Dockerfile

func (Dockerfile) Append

func (d Dockerfile) Append(df Dockerfile) Dockerfile

func (Dockerfile) DeriveMounts added in v0.4.1

func (d Dockerfile) DeriveMounts(context string) ([]model.Mount, error)

DeriveMounts finds ADD statements in a Dockerfile and turns them into Tilt model.Mounts. Relative paths in an ADD statement are relative to the build context (passed as an arg) and will appear in the Mount as an abs path.

func (Dockerfile) Entrypoint

func (d Dockerfile) Entrypoint(cmd model.Cmd) Dockerfile

func (Dockerfile) Join

func (d Dockerfile) Join(s string) Dockerfile

func (Dockerfile) RmPaths

func (d Dockerfile) RmPaths(pathsToRm []string) Dockerfile

func (Dockerfile) Run

func (d Dockerfile) Run(cmd model.Cmd) Dockerfile

func (Dockerfile) SplitIntoBaseDockerfile

func (d Dockerfile) SplitIntoBaseDockerfile() (Dockerfile, Dockerfile, bool)

If possible, split this dockerfile into two parts: a base dockerfile (without any adds/copys) and a "iterative" dockerfile. Useful for constructing the directory cache. Returns false if we can't split it.

func (Dockerfile) String

func (d Dockerfile) String() string

func (Dockerfile) ValidateBaseDockerfile

func (d Dockerfile) ValidateBaseDockerfile() error

func (Dockerfile) WithLabel

func (d Dockerfile) WithLabel(label Label, val LabelValue) Dockerfile

type Label

type Label string

type LabelValue

type LabelValue string

type Labels

type Labels map[Label]LabelValue

Jump to

Keyboard shortcuts

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