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 (Runner) Build ¶
func (r Runner) Build(in *BuildArguments) error
Build will run a `docker build` command with the input uri, tag, and Dockerfile path.
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. |
Click to show internal directories.
Click to hide internal directories.