layered

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: 19 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layered

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

A Layered builder builds images by first performing a docker build to inject (layer) the source code and s2i scripts into the builder image, prior to running the new image with the assemble script. This is necessary when the builder image does not include "sh" and "tar" as those tools are needed during the normal source injection process.

func New

func New(client docker.Client, config *api.Config, fs fs.FileSystem, scripts build.ScriptsHandler, overrides build.Overrides) (*Layered, error)

New creates a Layered builder.

func (*Layered) Build

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

Build handles the `docker build` equivalent execution, returning the success/failure details.

func (*Layered) CreateDockerfile

func (builder *Layered) 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.

Jump to

Keyboard shortcuts

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