dockerfile

package
v0.0.0-...-911ba08 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FROM    = "from"
	RUN     = "run"
	COPY    = "copy"
	ADD     = "add"
	WORKDIR = "workdir"
	ARG     = "arg"
	ENV     = "env"
)

Variables

This section is empty.

Functions

func DiscoverBuildArgs

func DiscoverBuildArgs(dockerfp string) (map[string]string, error)

DiscoverBuildArgs returns a map of docker build arguments defined before stages (FROM)

func DiscoverBuildStages

func DiscoverBuildStages(dockerfp, fileKey string) ([]common.BuildStage, error)

DiscoverBuildStages :

func DiscoverDockerfile

func DiscoverDockerfile(repoDir, filePattern string) []common.Dockerfile

DiscoverDockerfile scans a directory and returns array of dockerfiles

func GetDockerfile

func GetDockerfile(f string) (common.Dockerfile, error)

GetDockerfile: gets dcokerfile

func GetDockerfileReader

func GetDockerfileReader(filepath string) (*parser.Result, error)

GetDockerfileReader reads a file into Dockerfile parser

func ParseArgEnv

func ParseArgEnv(cmd string) map[string]string

ParseArgEnv parses an ARG/ENV instruction and returns variable name and value

Types

This section is empty.

Jump to

Keyboard shortcuts

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