dockerfile

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerfile

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

Dockerfile builders produce a Dockerfile rather than an image. Building the dockerfile w/ the right context will result in an application image being produced.

func New

func New(config *api.Config, fs fs.FileSystem) (*Dockerfile, error)

New creates a Dockerfile builder.

func (*Dockerfile) Build

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

Build produces a Dockerfile that when run with the correct filesystem context, will produce the application image.

func (*Dockerfile) CreateDockerfile

func (builder *Dockerfile) 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 (*Dockerfile) Prepare

func (builder *Dockerfile) Prepare(config *api.Config) error

Prepare prepares the source code and tar for build. NOTE: this func serves both the sti and onbuild strategies, as the OnBuild struct Build func leverages the STI struct Prepare func directly below.

Jump to

Keyboard shortcuts

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