Skip to content

[RFC #0096] Remove 'stacks' from builder.toml #1303

@buildpack-bot

Description

@buildpack-bot

builder.toml has a [stack] key which doesn't make sense in a post stack world (docs). However the new key name and the structure of this field are yet to be determined.

builder.toml has current schema:

# Stack that will be used by the builder
[stack]
id = "io.buildpacks.samples.stacks.bionic"
# This image is used at runtime
run-image = "cnbs/sample-stack-run:bionic"
run-image-mirrors = ["mirror1", "mirror2"]
# This image is used at build-time
build-image = "cnbs/sample-stack-build:bionic"

This feeds into /cnb/stack.toml in the created builder with schema:

[run-image]
 image = "cnbs/sample-stack-run:bionic"
 run-image-mirrors = ["mirror1", "mirror2"]

Proposed schema for builder.toml:

[run]
# Runtime images - first element is the default, later elements may be selected by run image extensions
[[run.images]]
image = "cnbs/some-run-image"
mirrors = ["mirror1", "mirror2"]
[build]
# This image is used at build-time
image = "cnbs/some-build-image"

This should feed into /cnb/run.toml in the created builder with schema:

[[images]]
 image = "cnbs/some-run-image"
 mirrors = ["mirror1", "mirror2"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/readyIssue ready to be worked on.type/enhancementIssue that requests a new feature or improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions