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

Integrate with buildkit #6

Open
hinshun opened this issue Jun 13, 2019 · 2 comments
Open

Integrate with buildkit #6

hinshun opened this issue Jun 13, 2019 · 2 comments

Comments

@hinshun
Copy link
Owner

hinshun commented Jun 13, 2019

POC buildkit using ipcs as psuedo-local build cache.

  1. How do define a "cache-miss". For instance, LLB vertex is cacheable with hash sha256:foobar, it's impossible to know if the IPFS network does not have content for that hash. We either traverse the full network, limit hops to certain depth, set a timeout on fetching the content. On a separate topic, can I race a LLB vertex execution to fetching its cache?
@AkihiroSuda
Copy link

Execute op and attempt to pull the cache in parallel, and cancel the op if the cache is found?

@hinshun
Copy link
Owner Author

hinshun commented Jun 14, 2019

Yes exactly, thanks for commenting @AkihiroSuda. I only just started digging through buildkit's cache code, so I'm not that familiar with it yet. For buildkit's containerd worker, does buildkit cache using containerd's content store through its proxy content store? If so, how does the runc worker cache?

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

No branches or pull requests

2 participants