docker

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(debug bool, args ...string) (string, error)

Exec Executes a docker command.

Types

type DockerfileInformation

type DockerfileInformation struct {
	Name      string
	Path      string
	Content   []byte
	ImageName string
	// contains filtered or unexported fields
}

DockerfileInformation Dockerfile information.

func GetDockerfile added in v1.4.3

func GetDockerfile(workingDirectory string, fallbackDockerfile DockerfileInformation, dockerfileName string) (*DockerfileInformation, error)

GetDockerfile Gets the effective Dockerfile.

func GetDockerfileFallback

func GetDockerfileFallback(dockerfileURL, imageName string) (DockerfileInformation, error)

GetDockerfileFallback Downloads and creates the DockerfileInformation of the Dockerfile fallback.

func (*DockerfileInformation) BuildImage added in v1.4.3

func (d *DockerfileInformation) BuildImage(versionsInfo types.VersionsInformation, noCache, debug bool) (string, error)

BuildImage Builds a Docker image.

Jump to

Keyboard shortcuts

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