-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cacheFrom option doesn't work #936
Comments
Thanks @zhorzh for reporting this issue. Indeed, a fix is needed to make this work on Cloud Builder. the images used in cacheFrom should be pulled before hand. See https://cloud.google.com/cloud-build/docs/speeding-up-builds#using_a_cached_docker_image |
Fixes GoogleContainerTools#936 Signed-off-by: David Gageot <[email protected]>
Fixes GoogleContainerTools#936 Signed-off-by: David Gageot <[email protected]>
the cache-from also not working on circle ci, but it is working locally |
I'm thinking that skaffold could help with this - it would be super convenient if the docker cacheFrom would pull the image - given the state of CI systems. I just ran into this myself, and it's annoying. |
big +1 on that |
Can some one please explain how # From skaffold dev -h
--cache-artifacts -- Set to true to enable caching of artifacts # On https://skaffold.dev/docs/references/yaml/
cacheFrom: -- The Docker images used as cache sources. |
Hi @demisx The
|
Hi @priyawadhwa. Thank you so much for your explanation. Would you say these would be the best practices for a common dev environment in order to speed up the experience?
build:
artifacts:
- image: dl-org-db
docker:
dockerfile: path/to/Dockerfile
cacheFrom:
- dl-org-db # <- same image name as in "image" field? |
|
If I remove |
Ah sorry I didn't clarify, images built for the artifact cache aren't deleted locally during prune! |
Thanks a lot for building skaffold!
I feel like I will not need any CI/CD tools soon :) ...almost.
I want to speed up the container building process for my project on Google Cloud.
The problem is that cacheFrom option is ignored completely.
Expected behavior
cacheFrom should force build process to use cache from the previously built image
Actual behavior
build process repeats every time without using the cache
Information
I have checked the previously build image on gcr.io - it exists
Steps to reproduce the behavior
I am wondering - does this feature work on Google Cloud?
The text was updated successfully, but these errors were encountered: