-
Notifications
You must be signed in to change notification settings - Fork 293
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
Standardize Cache Flag options #1077
Comments
@dwillist Not sure I am following this. How can the cache src be a volume but the cache destination be a remote image? |
@ekcasey I would expect using the |
@dwillist ahhh gotcha. I hadn't thought about that use case (migrating caches) but I think it would work fine from a lifecycle perspective if you use the individual phase. With If we did something like this I think it would be important to have good defaults. As a user |
An additional use case for this feature with Bitbucket (via slack): Links: |
@dwillist I've started an RFC. Would love to get your contributions in there. |
This is ready to implement as per RFC#0091 |
Setting status to blocked, since this issue was submitted to Google Summer of Code. This is scheduled to be worked on by a mentee. |
Hi @Nivedita-coder 👋 , Nice to see you here. I'd be more than happy to show you around. If you can, could you reach out to me over in the CNCF slack? My username there is |
Hey @jromero, I want to contribute for this project in GSoC 22, I have setup pack locally and already started playing with it. |
Description
We have received a couple different requests for functionality around the flexibility of the
.build
cache. These have all been implemented by adding additional flags to thepack
cli. and as a result we have--cache-image
and--cache-name? (pending)
to specify the build cache type & name.It feels like we might want consolidate this behavior to use more descriptive flags to make these combinations both easier to understand & extensible.
Proposed solution
Flags can be specified in a way similar to the
--mount
option for docker.Possible Flags:
pack build ... --cache 'src_type=volume,src=<VOLUME-NAME>,dst_type=remote_image,dst=<IMAGE-PATH>
Additional context
Related issues:
#1024
#665
#317
Update (2022-06-15)
Since this issue was opened an RFC was created and approved.
The following are tasks that need to be implemented in order to consider this issue resolved:
The text was updated successfully, but these errors were encountered: