Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP/DNM/RFC] support local cache exporter and importer
Export: $ buildctl build ... --export-cache type=local,store=/path/to/output-dir Import: $ buildctl build ... --cache-import type=local,store=/path/to/input-dir,digest=sha256:deadbeef Impact on CLI: * Old (deprecated but still effective): `--export-cache localhost:5000/myrepo:buildcache --export-cache-opt mode=max` * New: `--cache-export type=registry,ref=localhost:5000/myrepo:buildcache,mode=max` Impact on API: * New fields are added to control.proto and gateway.proto. The daemon internally translates old API calls to the new ones. * While new API can be used for `registry` caches, the client continues to use the legacy API for `registry` caches to ensure compatibility with old daemons. * To import `local` caches with a frontend, the frontend needs to support a new frontend opt `cache-imports`. Signed-off-by: Akihiro Suda <[email protected]>
- Loading branch information