docker

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDockerNotInstalled = errors.New(
		"you must have the docker installed to run formulas inside it, check how to install it at: [https://docs.docker.com/get-docker]",
	)
	ErrDockerImageNotFound = errors.New(
		"config.json does not contain the \"dockerImageBuilder\" field, to run this formula with docker add a docker image name to it",
	)
	ErrDockerfileNotFound = errors.New(
		"the formula cannot be executed inside the docker, you must add a \"Dockerfile\" to execute the formula inside the docker",
	)
	ErrInvalidVolume = errors.New(
		"config.json file does not contain a valid volume to be mounted",
	)
)

Functions

func NewRunner

func NewRunner(
	postRun formula.PostRunner,
	input formula.InputResolver,
	preRun formula.PreRunner,
	file stream.FileWriteExistAppender,
	env env.Finder,
	homeDir string,
) formula.Runner

Types

type PreRunManager

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

func (PreRunManager) PreRun

func (pr PreRunManager) PreRun(def formula.Definition) (formula.Setup, error)

type RunManager

type RunManager struct {
	formula.PostRunner
	formula.InputResolver
	formula.PreRunner
	// contains filtered or unexported fields
}

func (RunManager) Run

func (ru RunManager) Run(def formula.Definition, inputType api.TermInputType, verbose bool, flags *pflag.FlagSet) error

Jump to

Keyboard shortcuts

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