onbuild

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: Apache-2.0 Imports: 19 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(client docker.Client, 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