docker

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(dockerFileReader io.Reader, imagename string) error

func CreateDockerfile

func CreateDockerfile(
	buildpackURI,
	baseImage,
	port,
	codepath,
	cmd string,
	envmap map[string]string,
	downloader func(string) (string, error),
) (io.Reader, func(), error)

CreateDockerfile returns a reader which contains a dockerfiles contents as well as a function which can be used to cleanup any tmp dir created to store buildpacks when they are dloaded & unzipped it will also return an error if anything goes wrong

func HelmInstall added in v0.3.2

func HelmInstall(name, image, tag, port string, helmValues map[string]interface{}) error

func HelmInstallDockerfile added in v0.3.2

func HelmInstallDockerfile(kubeConfigPath, valuesYamlPath, repo, tag, name, port string) io.Reader

func PushImage

func PushImage(imageName string) error

PushImage - takes the image name as an argument in the format of / <org>/<name>:<tag>

func RunDockerfileInTmpImage added in v0.3.2

func RunDockerfileInTmpImage(dockerFileReader io.Reader) error

RunDockerfileInTmpImage - use a dockerfile as a script to run in a tmp container

func URIDownloader

func URIDownloader(downloadURI string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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