instruction

package
v1.2.181 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstructionEnv         stage.StageName = "ENV"
	InstructionCopy        stage.StageName = "COPY"
	InstructionAdd         stage.StageName = "ADD"
	InstructionRun         stage.StageName = "RUN"
	InstructionEntrypoint  stage.StageName = "ENTRYPOINT"
	InstructionCmd         stage.StageName = "CMD"
	InstructionUser        stage.StageName = "USER"
	InstructionWorkdir     stage.StageName = "WORKDIR"
	InstructionExpose      stage.StageName = "EXPOSE"
	InstructionVolume      stage.StageName = "VOLUME"
	InstructionOnBuild     stage.StageName = "ONBUILD"
	InstructionStopSignal  stage.StageName = "STOPSIGNAL"
	InstructionShell       stage.StageName = "SHELL"
	InstructionHealthcheck stage.StageName = "HEALTHCHECK"
	InstructionLabel       stage.StageName = "LABEL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	*stage.BaseStage
	// contains filtered or unexported fields
}

func NewBase

func NewBase(name stage.StageName, dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Base

func (*Base) HasPrevStage

func (stage *Base) HasPrevStage() bool

func (*Base) IsStapelStage

func (s *Base) IsStapelStage() bool

type Run

type Run struct {
	*Base
	// contains filtered or unexported fields
}

func NewRun

func NewRun(i *backend_instruction.Run, dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Run

func (*Run) GetDependencies

func (stage *Run) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage) (string, error)

func (*Run) PrepareImage

func (stage *Run) PrepareImage(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevBuiltImage, stageImage *stage.StageImage) error

Jump to

Keyboard shortcuts

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