Documentation ¶
Index ¶
- func BuildPushDockerImage(dockerfile, image, context string, push bool) error
- func BuildS2I(image, context, builderImage string, namespace string) error
- func CreateTarball(source, target string) error
- func GetImageName(image string) string
- func GetImageTag(image string) string
- func PushImage(fullImageName string) error
- func RunCommand(command []string) error
- type Build
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPushDockerImage ¶
func CreateTarball ¶
CreateTarball creates a tarball for source and dumps it to target path
Function modified and added from https://github.com/mholt/archiver/blob/master/tar.go
func GetImageName ¶ added in v0.6.0
func GetImageTag ¶ added in v0.6.0
getImageTag get tag name from image name if no tag is specified return 'latest'
func PushImage ¶
PushImage push a Docker image via the docker client. Takes the image name as input.
func RunCommand ¶ added in v0.6.0
Types ¶
type Build ¶
Build will provide methods for interaction with API regarding building images
func (*Build) BuildImage ¶
BuildImage builds a Docker image via the Docker API. Takes the source directory and image name and then builds the appropriate image. Tarball is utilized in order to make building easier.
Click to show internal directories.
Click to hide internal directories.