Documentation
¶
Index ¶
- Constants
- type Builder
- func (b *Builder) Authenticate() (*types.AuthConfig, error)
- func (b *Builder) Build(log logpkg.Logger) error
- func (b *Builder) BuildImage(contextPath, dockerfilePath string, entrypoint []string, cmd []string, ...) error
- func (b *Builder) PushImage(writer io.Writer) error
- func (b *Builder) ShouldRebuild(cache *generated.CacheConfig, forceRebuild, ignoreContextPathChanges bool) (bool, error)
Constants ¶
View Source
const EngineName = "docker"
EngineName is the name of the building engine
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder holds the necessary information to build and push docker images
func NewBuilder ¶
func NewBuilder(config *latest.Config, client dockerclient.Client, kubeClient kubectl.Client, imageConfigName string, imageConf *latest.ImageConfig, imageTag string, skipPush, isDev bool) (*Builder, error)
NewBuilder creates a new docker Builder instance
func (*Builder) Authenticate ¶
func (b *Builder) Authenticate() (*types.AuthConfig, error)
Authenticate authenticates the client with a remote registry
func (*Builder) BuildImage ¶
func (b *Builder) BuildImage(contextPath, dockerfilePath string, entrypoint []string, cmd []string, log logpkg.Logger) error
BuildImage builds a dockerimage with the docker cli contextPath is the absolute path to the context path dockerfilePath is the absolute path to the dockerfile WITHIN the contextPath
func (*Builder) ShouldRebuild ¶
func (b *Builder) ShouldRebuild(cache *generated.CacheConfig, forceRebuild, ignoreContextPathChanges bool) (bool, error)
ShouldRebuild determines if an image has to be rebuilt
Click to show internal directories.
Click to hide internal directories.