Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultBuilderImage is the docker image used to build docker images. DefaultBuilderImage = "remind101/conveyor-builder" // DefaultDataVolume is the default name of a container serving as a // data volume for ssh keys and docker credentials. In general, you // shouldn't need to change this. DefaultDataVolume = "data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // dataVolume is the name of the volume that contains ssh keys and // configuration data. DataVolume string // Name of the image to use to build the docker image. Defaults to // DefaultBuilderImage. Image string // Set to true to enable dry runs. This sets the `DRY` environment // variable within the builder container to `true`. The behavior of this // flag depends on how the builder image handles the `DRY` environment // variable. DryRun bool // contains filtered or unexported fields }
Builder is a builder.Builder implementation that runs the build in a docker container.
func NewBuilder ¶
func NewBuilder(c *docker.Client) *Builder
NewBuilder returns a new Builder backed by the docker client.
func NewBuilderFromEnv ¶
NewBuilderFromEnv returns a new Builder with a docker client configured from the standard Docker environment variables.
Click to show internal directories.
Click to hide internal directories.