uber-archive / makisu

Fast and flexible Docker image building tool, works in unprivileged containerized environments like Mesos and Kubernetes.
Apache License 2.0
2.41k stars 156 forks source link

Use layers digest for CacheID in FROM step #307

Open krumstein opened 4 years ago

krumstein commented 4 years ago

Using layers digest for calculating cacheID allows to use cache between different image tags. This can be very useful if there's a lot of similar images with different tags, for example, in a CI/CD pipeline where each feature branch produces different image tag.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

yiranwang52 commented 4 years ago

I think the best approach should be using SHA256 hash of manifest content.