docker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package docker provides an interface to the system's Docker daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildArguments added in v0.3.0

type BuildArguments struct {
	URI            string            // Required. Location of ECR Repo. Used to generate image name in conjunction with tag.
	ImageTag       string            // Required. Tag to pass to `docker build` via -t flag. Usually Git commit short ID.
	Dockerfile     string            // Required. Dockerfile to pass to `docker build` via --file flag.
	Context        string            // Optional. Build context directory to pass to `docker build`
	Args           map[string]string // Optional. Build args to pass via `--build-arg` flags. Equivalent to ARG directives in dockerfile.
	AdditionalTags []string          // Optional. Additional image tags to pass to docker.
}

BuildArguments holds the arguments we can pass in as flags from the manifest.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner represents a command that can be run.

func New

func New() Runner

New returns a Runner.

func (Runner) Build

func (r Runner) Build(in *BuildArguments) error

Build will run a `docker build` command with the input uri, tag, and Dockerfile path.

func (Runner) Login

func (r Runner) Login(uri, username, password string) error

Login will run a `docker login` command against the Service repository URI with the input uri and auth data.

func (Runner) Push

func (r Runner) Push(uri, imageTag string, additionalTags ...string) error

Push will run `docker push` command against the repository URI with the input uri and image tags.

Directories

Path Synopsis
Package dockerfile provides simple Dockerfile parsing functionality.
Package dockerfile provides simple Dockerfile parsing functionality.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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