Closed sclevine closed 5 years ago
A couple of questions:
Updated OP.
How we think we will work through this:
create-builder
to add current stack's run images to builder metadatabuild
(and by implication run
) to use the run image metadata injected by create-builder
inspect-remote-builder
to list run images baked into builderinspect-remote-builder
to list run images from config.toml for builderconfigure-builder
to update config.toml with run images for builder, account for these run images during build
packs/samples
)
New config.toml:
Need new command:
NOTE: this replaces the run image list every time
For
pack inspect-remote-builder
:Notes
stacks
list in config.toml MUST only be used inpack create-builder
, and not inpack build
.builders
list in config.toml MUST only be used inpack build
(orpack inspect-remote-builder
), and not inpack create-builder
.-r
is option, no-r
flags means no run images. No configuration removes the entry for the builder in config.toml.["example.com/packs1/run", "example.com/packs2/run", "gcr.io/packs2/run", "packs/run", "gcr.io/packs/run"]
Acceptance Criteria Given The above config.toml file without the
builders
section When I runpack build gcr.io/user/myapp --builder packs/sample
Then gcr.io/packs/run is used to export the final imageGiven The above config.toml file with the
builders
section When I runpack build gcr.io/user/myapp --builder packs/sample
Then gcr.io/packs2/run is used to export the final imageGiven The above config.toml file with the
builders
section When I runpack build example.com/user/myapp --builder packs/sample
Then example.com/packs1/run is used to export the final image