-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
vendor: github.com/moby/buildkit v0.12.3-dev #46644
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fairly sure that (pending CI) changes will be needed in how we set up the BuildKit controller due to moby/buildkit@c297384.
Locations of interest in moby/moby:
moby/builder/builder-next/controller.go
Lines 134 to 157 in 80a9fc6
return control.NewController(control.Opt{ | |
SessionManager: opt.SessionManager, | |
WorkerController: wc, | |
Frontends: frontends, | |
CacheManager: solver.NewCacheManager(ctx, "local", cacheStorage, worker.NewCacheResultStorage(wc)), | |
ResolveCacheImporterFuncs: map[string]remotecache.ResolveCacheImporterFunc{ | |
"gha": gha.ResolveCacheImporterFunc(), | |
"local": localremotecache.ResolveCacheImporterFunc(opt.SessionManager), | |
"registry": registryremotecache.ResolveCacheImporterFunc(opt.SessionManager, wo.ContentStore, opt.RegistryHosts), | |
}, | |
ResolveCacheExporterFuncs: map[string]remotecache.ResolveCacheExporterFunc{ | |
"gha": gha.ResolveCacheExporterFunc(), | |
"inline": inlineremotecache.ResolveCacheExporterFunc(), | |
"local": localremotecache.ResolveCacheExporterFunc(opt.SessionManager), | |
"registry": registryremotecache.ResolveCacheExporterFunc(opt.SessionManager, opt.RegistryHosts), | |
}, | |
Entitlements: getEntitlements(opt.BuilderConfig), | |
HistoryDB: historyDB, | |
HistoryConfig: historyConf, | |
LeaseManager: wo.LeaseManager, | |
ContentStore: wo.ContentStore, | |
TraceCollector: getTraceExporter(ctx), | |
}) | |
} |
moby/builder/builder-next/controller.go
Lines 355 to 374 in 80a9fc6
return control.NewController(control.Opt{ | |
SessionManager: opt.SessionManager, | |
WorkerController: wc, | |
Frontends: frontends, | |
CacheManager: solver.NewCacheManager(ctx, "local", cacheStorage, worker.NewCacheResultStorage(wc)), | |
ResolveCacheImporterFuncs: map[string]remotecache.ResolveCacheImporterFunc{ | |
"registry": localinlinecache.ResolveCacheImporterFunc(opt.SessionManager, opt.RegistryHosts, store, dist.ReferenceStore, dist.ImageStore), | |
"local": localremotecache.ResolveCacheImporterFunc(opt.SessionManager), | |
}, | |
ResolveCacheExporterFuncs: map[string]remotecache.ResolveCacheExporterFunc{ | |
"inline": inlineremotecache.ResolveCacheExporterFunc(), | |
}, | |
Entitlements: getEntitlements(opt.BuilderConfig), | |
LeaseManager: lm, | |
ContentStore: store, | |
HistoryDB: historyDB, | |
HistoryConfig: historyConf, | |
TraceCollector: getTraceExporter(ctx), | |
}) | |
} |
CI looks happy, but perhaps @tonistiigi knows if changes are needed? |
update buildkit to the latest code in the v0.12 branch: full diff: moby/buildkit@f94ed7c...6560bb9 Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
558ec75
to
919fe72
Compare
update buildkit to the latest code in the v0.12 branch:
full diff: moby/buildkit@f94ed7c...6560bb9
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)