-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't fail when a builder or stack image cannot be pulled #90
Comments
In the first scenario, did you mean |
When Without the flag, I believe we should attempt to pull but permit a missing remote image. Rather than assuming that this is a failure case, I want to interpret it as a success, as in "we successfully ensured the image was as up to date as possible". We should probably print some info about whether a new version was fetched. thoughts? |
I guess I'm parsing this with the same I would say that if there is no tag specified on the image, Does the absence of the |
I tried to make the intent more clear in the description, let me know if I succeeded The intention of pulling by default is to ensure that users have the most up-to-date base images and buildpacks. However, if there is no remote image it implies that the user is using a locally created builder or stack and there is no way to update. Several users who are developing buildpacks have said that this behavior is annoying. Most users who are attempting to create a The case we are guarding against now doesn't seem to describe many real world scenarios. I have trouble imagining a case where the user wants to update the |
I think a warning that pull was unsuccessful but allowing progress is appropriate. |
For reference, registry v2 error codes. |
- We want to ensure that lifecycle does not return an error in the situation where we can pull from remote but the image only exists locally [buildpacks/pack#90] Signed-off-by: Joao Pereira <[email protected]> Signed-off-by: Ashwin Venkatesh <[email protected]>
- We want to ensure that lifecycle does not return an error in the situation where we can pull from remote but the image only exists locally [buildpacks/pack#90] Signed-off-by: Joao Pereira <[email protected]> Signed-off-by: Ashwin Venkatesh <[email protected]> Signed-off-by: Andrew Meyer <[email protected]>
[#90] Signed-off-by: Andrew Meyer <[email protected]> Signed-off-by: Danny Joyce <[email protected]>
[#90] Signed-off-by: Danny Joyce <[email protected]> Signed-off-by: Andrew Meyer <[email protected]>
[#90] Signed-off-by: Danny Joyce <[email protected]> Signed-off-by: Andrew Meyer <[email protected]>
This story passes acceptance. |
No Remote Builder Image
Given I have run
pack build --builder <builder-image>
without the--no-pull
flagGiven there is a local version of the
builder
imageWhen pack attempts to pull the image and the registry returns any error
Then
pack
should continue executing without errorNo Remote Builder Image and No Local Builder Image
Given I have run
pack build --builder <builder-image>
without the--no-pull
flagGiven there is not a local version of the
builder
imageWhen pack attempts to pull the image and the registry returns any error
Then
pack
should error out*The fix for this will involve changes to the
image
package inbuildpacks/lifecycle
PM Acceptance Criteria
Case #1
When I build an image with
pack build my-image
And A remote copy of:
is not available
And A local copy of the image is available
Then The local copy is silently used for the build
Case #2
When I build an image with
pack build my-image
And A remote copy of:
is available
And A local copy of the image is available
Then The remote copy of the image is pulled and used for the build
Notes
The text was updated successfully, but these errors were encountered: