onbuild

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 18 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(config *api.Config, overrides build.Overrides) (*OnBuild, error)

New returns a new instance of OnBuild builder

func (*OnBuild) Build

func (b *OnBuild) Build(config *api.Config) (*api.Result, error)

Build executes the ONBUILD kind of build

func (*OnBuild) CreateDockerfile

func (b *OnBuild) CreateDockerfile(config *api.Config) error

CreateDockerfile creates the ONBUILD Dockerfile

func (*OnBuild) SourceTar

func (b *OnBuild) SourceTar(config *api.Config) (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