Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
RegistryURL string
ImageName string
ImageTag string
// contains filtered or unexported fields
}
Builder holds the necessary information to build and push docker images
func NewBuilder ¶
func NewBuilder(client client.CommonAPIClient, registryURL, imageName, imageTag string) (*Builder, error)
NewBuilder creates a new docker Builder instance
func (*Builder) Authenticate ¶
func (b *Builder) Authenticate(user, password string, checkCredentialsStore bool) (*types.AuthConfig, error)
Authenticate authenticates the client with a remote registry
func (*Builder) BuildImage ¶
func (b *Builder) BuildImage(contextPath, dockerfilePath string, options *types.ImageBuildOptions) 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