build

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPushDockerImage

func BuildPushDockerImage(dockerfile, image, context string, push bool) error

func BuildS2I added in v0.6.0

func BuildS2I(image, context, builderImage string, namespace string) error

func CreateTarball

func CreateTarball(source, target string) error

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 GetImageName(image string) string

func GetImageTag added in v0.6.0

func GetImageTag(image string) string

getImageTag get tag name from image name if no tag is specified return 'latest'

func PushImage

func PushImage(fullImageName string) error

PushImage push a Docker image via the docker client. Takes the image name as input.

func RunCommand added in v0.6.0

func RunCommand(command []string) error

Types

type Build

type Build struct {
	Client dockerlib.Client
}

Build will provide methods for interaction with API regarding building images

func (*Build) BuildImage

func (c *Build) BuildImage(dockerfile, image, context string) error

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.

Jump to

Keyboard shortcuts

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