Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRoleDevImageName ¶
func GetRoleDevImageName(registry, organization, repositoryPrefix string, instanceGroup *model.InstanceGroup, version string) string
GetRoleDevImageName generates a docker image name to be used as a dev role image
Types ¶
type PackagesImageBuilder ¶
type PackagesImageBuilder struct { RepositoryPrefix string StemcellImageID string StemcellImageName string CompiledPackagesPath string FissileVersion string }
PackagesImageBuilder represents a builder of the shared packages layer docker image
func (*PackagesImageBuilder) GetImageName ¶
func (p *PackagesImageBuilder) GetImageName(roleManifest *model.RoleManifest, instanceGroups model.InstanceGroups, grapher util.ModelGrapher) (string, error)
GetImageName generates a docker image name for the amalgamation holding all packages used in the specified instance group
func (*PackagesImageBuilder) NewDockerPopulator ¶
func (p *PackagesImageBuilder) NewDockerPopulator(instanceGroups model.InstanceGroups, labels map[string]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 ReleasesImageBuilder ¶
type ReleasesImageBuilder struct { CompilationCacheConfig string CompilationDir string DockerNetworkMode string DockerOrganization string DockerRegistry string DryRun bool FissileVersion string Force bool Grapher util.ModelGrapher MetricsPath string NoBuild bool OutputDirectory string RepositoryPrefix string StemcellName string StreamPackages bool UI *termui.UI Verbose bool WithoutDocker bool WorkerCount int }
ReleasesImageBuilder represents a builder of docker release images.
func (*ReleasesImageBuilder) Build ¶
func (r *ReleasesImageBuilder) Build(releases model.Releases) error
Build triggers the building of the release docker images in parallel.
func (*ReleasesImageBuilder) NewDockerPopulator ¶
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 { BaseImageName string DarkOpinionsPath string DockerOrganization string DockerRegistry string FissileVersion string Force bool Grapher util.ModelGrapher LightOpinionsPath string ManifestPath string MetricsPath string NoBuild bool OutputDirectory string RepositoryPrefix string TagExtra string UI *termui.UI Verbose bool WorkerCount int }
RoleImageBuilder represents a builder of docker role images
func (*RoleImageBuilder) Build ¶
func (r *RoleImageBuilder) Build(instanceGroups model.InstanceGroups) error
Build triggers the building of the role docker images in parallel
func (*RoleImageBuilder) NewDockerPopulator ¶
func (r *RoleImageBuilder) NewDockerPopulator(instanceGroup *model.InstanceGroup) 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