Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 string, stemcellImageName string, compiledPackagesPath, targetPath, fissileVersion string, ui *termui.UI) (*PackagesImageBuilder, error)
NewPackagesImageBuilder creates a new PackagesImageBuilder
func (*PackagesImageBuilder) GetRolePackageImageName ¶
func (p *PackagesImageBuilder) GetRolePackageImageName(roleManifest *model.RoleManifest, roles model.Roles) (string, error)
GetRolePackageImageName generates a docker image name for the amalgamation for a role image
func (*PackagesImageBuilder) NewDockerPopulator ¶
func (p *PackagesImageBuilder) NewDockerPopulator(roles model.Roles, 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, lightOpinionsPath, darkOpinionsPath, metricsPath, fissileVersion string, ui *termui.UI) (*RoleImageBuilder, error)
NewRoleImageBuilder creates a new RoleImageBuilder
func (*RoleImageBuilder) BuildRoleImages ¶
func (r *RoleImageBuilder) BuildRoleImages(roles model.Roles, registry, organization, repository, baseImageName, outputDirectory string, force, noBuild bool, workerCount int) error
BuildRoleImages triggers the building of the role docker images in parallel
func (*RoleImageBuilder) NewDockerPopulator ¶
func (r *RoleImageBuilder) NewDockerPopulator(role *model.Role, baseImageName string) 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