Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseImageName ¶
GetBaseImageName generates a docker image name to be used as a role image base
Types ¶
type BaseImageBuilder ¶
type BaseImageBuilder struct {
BaseImage string
}
BaseImageBuilder represents a builder of docker base images
func NewBaseImageBuilder ¶
func NewBaseImageBuilder(baseImage string) *BaseImageBuilder
NewBaseImageBuilder creates a new BaseImageBuilder
func (*BaseImageBuilder) NewDockerPopulator ¶
func (b *BaseImageBuilder) NewDockerPopulator() func(*tar.Writer) error
NewDockerPopulator returns a function that will populate the docker tar archive
type PackagesImageBuilder ¶
type PackagesImageBuilder struct {
// contains filtered or unexported fields
}
PackagesImageBuilder represents a builder of the shared packages layer docker image
func NewPackagesImageBuilder ¶
func NewPackagesImageBuilder(repository, compiledPackagesPath, targetPath, fissileVersion string, ui *termui.UI) (*PackagesImageBuilder, error)
NewPackagesImageBuilder creates a new PackagesImageBuilder
func (*PackagesImageBuilder) GetRolePackageImageName ¶
func (p *PackagesImageBuilder) GetRolePackageImageName(roleManifest *model.RoleManifest) string
GetRolePackageImageName generates a docker image name for the amalgamation for a role image
func (*PackagesImageBuilder) NewDockerPopulator ¶
func (p *PackagesImageBuilder) NewDockerPopulator(roleManifest *model.RoleManifest, lightManifestPath, darkManifestPath string, forceBuildAll bool) func(*tar.Writer) error
NewDockerPopulator returns a function which can populate a tar stream with the docker context to build the packages layer image with
type RoleImageBuilder ¶
type RoleImageBuilder struct {
// contains filtered or unexported fields
}
RoleImageBuilder represents a builder of docker role images
func NewRoleImageBuilder ¶
func NewRoleImageBuilder(repository, compiledPackagesPath, targetPath, metricsPath, version, fissileVersion string, ui *termui.UI) (*RoleImageBuilder, error)
NewRoleImageBuilder creates a new RoleImageBuilder
func (*RoleImageBuilder) BuildRoleImages ¶
func (r *RoleImageBuilder) BuildRoleImages(roles model.Roles, repository, baseImageName string, force, noBuild bool, workerCount int) error
BuildRoleImages triggers the building of the role docker images in parallel
func (*RoleImageBuilder) CreateDockerfileDir ¶
func (r *RoleImageBuilder) CreateDockerfileDir(role *model.Role, baseImageName string) (string, error)
CreateDockerfileDir generates a Dockerfile and assets in the targetDir and returns a path to the dir