layered

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layered

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

A Layered builder builds images by first performing a docker build to inject (layer) the source code and s2i scripts into the builder image, prior to running the new image with the assemble script. This is necessary when the builder image does not include "sh" and "tar" as those tools are needed during the normal source injection process.

func New

func New(config *api.Config, scripts build.ScriptsHandler, overrides build.Overrides) (*Layered, error)

New creates a Layered builder.

func (*Layered) Build

func (builder *Layered) Build(config *api.Config) (*api.Result, error)

Build handles the `docker build` equivalent execution, returning the success/failure details.

func (*Layered) CreateDockerfile

func (builder *Layered) CreateDockerfile(config *api.Config) error

CreateDockerfile takes the various inputs and creates the Dockerfile used by the docker cmd to create the image produced by s2i.

func (*Layered) SourceTar

func (builder *Layered) SourceTar(config *api.Config) (io.ReadCloser, error)

SourceTar returns a stream to the source tar file. TODO: this should stop generating a file, and instead stream the tar.

Jump to

Keyboard shortcuts

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