Documentation
¶
Overview ¶
Package build provides the image build command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdBuild ¶
func NewCmdBuild(f *cmdutil.Factory, runF func(context.Context, *BuildOptions) error) *cobra.Command
NewCmdBuild creates the image build command.
Types ¶
type BuildOptions ¶
type BuildOptions struct {
IOStreams *iostreams.IOStreams
TUI *tui.TUI
Config func() (config.Config, error)
Client func(context.Context) (*docker.Client, error)
ProjectManager func() (project.ProjectManager, error)
File string // -f, --file (Dockerfile path)
Tags []string // -t, --tag (multiple allowed)
NoCache bool // --no-cache
Pull bool // --pull
BuildArgs []string // --build-arg KEY=VALUE
Labels []string // --label KEY=VALUE (user labels)
Target string // --target
Quiet bool // -q, --quiet
Progress string // --progress (output formatting)
Network string // --network
}
BuildOptions contains the options for the build command.
Click to show internal directories.
Click to hide internal directories.