Documentation ¶
Overview ¶
Package runner is an implementation of job runner.
Package runner is an implementation of job runner.
Index ¶
- Constants
- func CopyFromContainer(client *docker_client.Client, cid string, sourcefile string, dstPath string) error
- func CopyOutPutFiles(dockerManager *docker.Manager, cid string, outputs []string, outPutPath string) error
- func Encode(c *docker_client.CreateContainerOptions, n *parser.DockerNode)
- type Build
- type BuildStatus
Constants ¶
View Source
const ( // BindTemplate is the template of binds. BindTemplate = "%s:%s" // BuiltImage is the flag of running a container which use the built image as a service. BuiltImage = "BUILT_IMAGE" )
Variables ¶
This section is empty.
Functions ¶
func CopyFromContainer ¶
func CopyFromContainer(client *docker_client.Client, cid string, sourcefile string, dstPath string) error
CopyFromContainer copies from sourcefile in container to dstPath in host.
func CopyOutPutFiles ¶
func CopyOutPutFiles(dockerManager *docker.Manager, cid string, outputs []string, outPutPath string) error
CopyOutPutFiles copy output files from container
func Encode ¶
func Encode(c *docker_client.CreateContainerOptions, n *parser.DockerNode)
Encode encodes the build script as a command in the provided Container config. For linux, the build script is embedded as the container entrypoint command, base64 encoded as a one-line script.
Types ¶
type Build ¶
type Build struct {
// contains filtered or unexported fields
}
Build is a typed representation of a build job.
func Load ¶
func Load(contextDir string, event *api.Event, dockerManager *docker.Manager, tree *parser.Tree) *Build
Load loads the tree to the build job.
func (*Build) IsPushImageSuccess ¶
IsPushImageSuccess gets if image is pushed successfully.
func (*Build) PublishImage ¶
PublishImage publish image to registry.
Click to show internal directories.
Click to hide internal directories.