onbuild

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: Apache-2.0 Imports: 18 Imported by: 53

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, fs util.FileSystem, overrides build.Overrides) (*OnBuild, error)

New returns a new instance of OnBuild builder

func (*OnBuild) Build

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

Build executes the ONBUILD kind of build

func (*OnBuild) CreateDockerfile

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

CreateDockerfile creates the ONBUILD Dockerfile

Jump to

Keyboard shortcuts

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