Documentation ¶
Overview ¶
Package builder contains builders for STI and Docker in OpenShift Origin
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultPushRetryCount is the number of retries of pushing the built Docker image // into a configured repository DefaultPushRetryCount = 6 // DefaultPushRetryDelay is the time to wait before triggering a push retry DefaultPushRetryDelay = 5 * time.Second // RetriableErrors is a set of strings that indicate that an retriable error occurred. RetriableErrors = []string{ "ping attempt failed with error", "is already in progress", "connection reset by peer", "transport closed before response was received", } )
Functions ¶
This section is empty.
Types ¶
type DockerBuilder ¶
type DockerBuilder struct {
// contains filtered or unexported fields
}
DockerBuilder builds Docker images given a git repository URL
func NewDockerBuilder ¶
func NewDockerBuilder(dockerClient DockerClient, build *api.Build) *DockerBuilder
NewDockerBuilder creates a new instance of DockerBuilder
type DockerClient ¶
type DockerClient interface { BuildImage(opts docker.BuildImageOptions) error PushImage(opts docker.PushImageOptions, auth docker.AuthConfiguration) error RemoveImage(name string) error }
DockerClient is an interface to the Docker client that contains the methods used by the common builder
type MetaInstruction ¶ added in v1.0.5
type MetaInstruction string
MetaInstuction represent an Docker instruction used for adding metadata to Dockerfile
const ( // Label represents the LABEL Docker instruction Label MetaInstruction = "LABEL" // Env represents the ENV Docker instruction Env MetaInstruction = "ENV" )
type STIBuilder ¶
type STIBuilder struct {
// contains filtered or unexported fields
}
STIBuilder performs an STI build given the build object
func NewSTIBuilder ¶
func NewSTIBuilder(client DockerClient, dockerSocket string, build *api.Build) *STIBuilder
NewSTIBuilder creates a new STIBuilder instance
Directories ¶
Path | Synopsis |
---|---|
Package cmd contains the main entry point for the docker and STI builders
|
Package cmd contains the main entry point for the docker and STI builders |
dockercfg
Package dockercfg contains a command helper to read .dockercfg files
|
Package dockercfg contains a command helper to read .dockercfg files |
Click to show internal directories.
Click to hide internal directories.