Skip to content
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

[img#165] Ability to build images offline #706

Open
AkihiroSuda opened this issue Oct 30, 2018 · 3 comments
Open

[img#165] Ability to build images offline #706

AkihiroSuda opened this issue Oct 30, 2018 · 3 comments

Comments

@AkihiroSuda
Copy link
Member

cc @akshaymankar

@tonistiigi
Copy link
Member

This is not only ResolveModePreferLocal but ResolveModePreferLocal is a good example for how to do it. I think all the sources git/http/image (eg. LLB roots) should have a persistent LRU cache mechanism for resolving the cache key. Eg. from reference to digest on images, repo-url to commit sha on git, url to sha256 in http. Whenever a source is resolved it should add a record into that cache for future use. So in the case of images, while ResolveModePreferLocal requires a local image, this cache mechanism doesn't require the image to be present and only needs the digest to be resolved.

Should add a new flag that is exposed to all sources. Something like --validate-remote=required,fallback,offline where fallback would use cache when remote check failed.

@ajbouh
Copy link

ajbouh commented Mar 18, 2019

Any update on this awesome feature?

@vito
Copy link
Contributor

vito commented Mar 26, 2020

I'd like to look into this, but I'm not really sure where to start. I think it's a pretty important feature to have for reproducible image building in CI.

The goal is to be able to track upstream images as dependencies and fetch them on our own accord (handling auth, etc. separately from buildkit) and then pass them on to buildkit. If there was some way to have buildkit load FROM images from local OCI image tarballs instead of fetching the image on its own, that would be perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants