builder

package
v0.0.0-...-dbb4c78 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AdditionalPackageBuildArg = "ADDITIONAL_PACKAGE"

AdditionalPackageBuildArg holds the special build-arg keyname for use with build-opts. Can also be passed as a build arg hence needs to be accessed from commands

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(image string, handler string, functionName string, language string, nocache bool, squash bool, shrinkwrap bool, buildArgMap map[string]string, buildOptions []string, tag string) error

BuildImage construct Docker image from function parameters

func CopyFiles

func CopyFiles(src, dest string) error

CopyFiles copies files from src to destination.

func ExecCommand

func ExecCommand(tempPath string, builder []string)

ExecCommand run a system command

func ExecCommandWithOutput

func ExecCommandWithOutput(builder []string, skipFailure bool) string

ExecCommand run a system command an return stdout

func GetGitBranch

func GetGitBranch() string

func GetGitSHA

func GetGitSHA() string

GetGitSHA returns the short Git commit SHA from local repo

Types

This section is empty.

Jump to

Keyboard shortcuts

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