dockerfile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dependencies

func Dependencies(index int, stages []instructions.Stage, buildArgs *BuildArgs) ([]string, error)

Dependencies returns a list of files in this stage that will be needed in later stages

func Parse

func Parse(b []byte) ([]instructions.Stage, error)

Parse parses the contents of a Dockerfile and returns a list of commands

func ParseCommands

func ParseCommands(cmdArray []string) ([]instructions.Command, error)

ParseCommands parses an array of commands into an array of instructions.Command; used for onbuild

func ResolveStages

func ResolveStages(stages []instructions.Stage)

ResolveStages resolves any calls to previous stages with names to indices Ex. --from=second_stage should be --from=1 for easier processing later on

func ValidateTarget added in v0.3.0

func ValidateTarget(stages []instructions.Stage, target string) error

Types

type BuildArgs

type BuildArgs struct {
	d.BuildArgs
}

func NewBuildArgs

func NewBuildArgs(args []string) *BuildArgs

func (*BuildArgs) Clone

func (b *BuildArgs) Clone() *BuildArgs

func (*BuildArgs) ReplacementEnvs

func (b *BuildArgs) ReplacementEnvs(envs []string) []string

ReplacementEnvs returns a list of filtered environment variables

Jump to

Keyboard shortcuts

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