onbuild

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuessEntrypoint

func GuessEntrypoint(fs util.FileSystem, sourceDir string) (string, error)

GuessEntrypoint tries to guess the valid entrypoint from the source code repository. The valid entrypoints are defined above (run,start,exec,execute)

Types

type OnBuild

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

OnBuild strategy executes the simple Docker build in case the image does not support STI scripts but has ONBUILD instructions recorded.

func New

func New(request *api.Request) (*OnBuild, error)

New returns a new instance of OnBuild builder

func (*OnBuild) Build

func (b *OnBuild) Build(request *api.Request) (*api.Result, error)

Build executes the ONBUILD kind of build

func (*OnBuild) CreateDockerfile

func (b *OnBuild) CreateDockerfile(request *api.Request) error

CreateDockerfile creates the ONBUILD Dockerfile

func (*OnBuild) SourceTar

func (b *OnBuild) SourceTar(request *api.Request) (io.ReadCloser, error)

SourceTar produces a tar archive containing application source and stream it

Jump to

Keyboard shortcuts

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