-
Notifications
You must be signed in to change notification settings - Fork 37
Prebuild worker images #655
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
Conversation
655566b
to
704813d
Compare
f48b0ea
to
230fcef
Compare
What does the following mean, from the 2nd commit message?
What does it mean to "load routes"? What do you mean by "build routes". I don't understand what the 2nd commit is doing |
"routes" => build targts ( |
Can you explain how the containerd plugin system is being used here, and what it does generally? What does it mean to "load" a route/build target via a plugin? |
import ( | ||
"context" | ||
|
||
"github.com/moby/buildkit/frontend/gateway/client" |
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 would alias this to gwclient
since we do that almost everywhere else. Makes it clearer faster which client is being used
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.
LGTM
This makes usse of the containerd plugin system to add support for loading routes via plugin. This can be expanded to more than just build routes, but this is useful for now. I plan to use this more in a follow-up commit. Signed-off-by: Brian Goff <[email protected]>
230fcef
to
68e5d58
Compare
This will be triggered on merge to populate the worker cache which can be used by CI jobs. It will also be triggered on tag pushes which will ensure each release of dalec will give us a set of worker images that can be used as base images for other projects. workflow_dispatch is also included for rebuilding images manually. Signed-off-by: Brian Goff <[email protected]>
68e5d58
to
b2beabb
Compare
Adds pre-built worker images to ghcr repo.
These get pushed on tag, but also create a GHA cache on merge.
Builders can either use
--cache-from
with the image ref for the versioned worker to use it as a cache for building the worker image OR use--build-context <worker-name>=<worker image ref>
just use the worker image outright.