-
Notifications
You must be signed in to change notification settings - Fork 0
As an app developer, pack rebase automatically determines a run image using the available mirrors #48
Comments
Added acceptance criteria and notes. |
After a team discussion, we want to change this feature to have the following behavior: Build
Rebase
|
Waiting on approval of buildpacks/lifecycle#90 pack changes on branch |
I think the desired end state we would like to get to is the following
|
With the above the changes, we should revert the change that added the |
|
* create-builder writes stack.toml with run image and mirrors metadata [buildpacks/roadmap#48] Signed-off-by: Danny Joyce <djoyce@pivotal.io> Signed-off-by: Andrew Meyer <ameyer@pivotal.io> Signed-off-by: Emily Casey <ecasey@pivotal.io>
We broke out the exporter selecting the run-image into buildpack/roadmap#58 We also made some last minute changes to the schema of metadata labels and files to reduce the total number of labels and the number of different names we use for the same concept on the builder image:
on the app image:
|
Leaving this as unaccepted because I want to test more edge cases, but it looks good enough to release in v0.1.0. |
Acceptance Criteria
Given
When I run
pack build my-image
Then I new version of the run image is available on all mirrors
Scenario 1
When I run
pack rebase my-image
(without--run-image
)Then The run image under
my-image
is replaced with a run image from the appropriate sourceScenario 2
When I run
pack rebase my-image --run-image custom/image
Then The run image under
my-image
is replaced withcustom/image
Notes
pack build
. This means therun-image
andrun-image-mirrors
from the builder used duringpack build
must be encoded in the generated OCI image on eachpack build
.--no-pull
to work when only a local image is availablepack build --publish
,pack rebase --publish
should work when the run image is not available at the target registry. This means that if a suitable run image is not available on the registry, then select the canonical image.pack *-stack
commandsImplementation Notes
pack create-builder
should add a file (similar toorder.toml
) that also contains the run image mirror metadata (that is also available as a LABEL on the image). The file path should have a default value, but also be overridable using an arg or env var (likeorder.toml
).CNB_MIRRORS_PATH
/-mirrors
//buildpacks/mirrors.toml
The text was updated successfully, but these errors were encountered: