GoogleContainerTools / GoogleContainerTools/skaffold
Pruning with artifact caching
Open
area/cache
area/prune
cloud-code/cloud-run
kind/feature-request
priority/p3
- Dominant language
- Go
- Stars
- 15.9k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
Currently artifact caching and pruning are either-or. Artifact caching is turned on by default resulting in cool speedups but pruning is turned off and Docker VM disks are filling up fasts.
I propose a "limited memory" artifact caching solution that "remembers" only 2-3 images for a given artifact. Also we can add a TTL for our cache too.
This way we can prune all the skaffold built layers that are - in the artifact cache but out of TTL or beyond the cache capacity for a given artifact.
Size of the cache and TTL can be configurable.
Contributor guide
Assessment
This issue has not been assessed yet.