You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build cache as an image is currently only supports using cache as an image from registry which requires the final app image to be pushed to registry (The --cache-image and --publish flags need to be used together).
To add complete support for build cache as an image,
Support for scenarios will be implement -
Cache image used from registry when exporting app image to docker daemon.
Implement the flag support based on acceptance criteria defined below
Acceptance Criteria
Image is pushed to the registry
Given the current working directory contains source code
And configured builder can build source code
When user executes 'pack build myorg/myapp:latest --cache "type=build;format=image;name=myorg/myimage:cache" --publish'And build finishes successfully
Then 'myorg/myapp:cache' should existing in registry
And 'myorg/myapp:cache' image should contain the cached build layers
Image build cache should require --publish flag
Given the current working directory contains source code
And configured builder can build source code
When user executes 'pack build myorg/myapp:latest --cache "type=build;format=image;name=myorg/myimage:cache"'Then the build should fail
And an error containing the following should be present:
"""invalid cache definition: 'image' format is only acceptable with '--publish' flag."""
The text was updated successfully, but these errors were encountered:
pack build --cache 'type=build;format=image;name=<image name/image registry address>'
Build cache as an image is currently only supports using cache as an image from registry which requires the final app image to be pushed to registry (The
--cache-image
and--publish
flags need to be used together).To add complete support for build cache as an image,
Support for scenarios will be implement -
Cache image used from registry when exporting app image to docker daemon.Decouple--cache-image
and--publish
flags from pack, Store image in local docker daemon when using pack build --publish #1024Add support for this kind of export to the lifecycle's export phaseSupport for scenarios already exists, might require a bit of modification -
Support for scenarios does not seem feasible from previous discussions, need confirmation for next steps on these -
Acceptance Criteria
Image is pushed to the registry
Image build cache should require
--publish
flagThe text was updated successfully, but these errors were encountered: