-
Notifications
You must be signed in to change notification settings - Fork 507
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
Add remote driver #1078
Add remote driver #1078
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.
Could we add some CI testing for this. Could just start buildkitd manually in a container and then use remote driver to dial into it via port.
driver/remote/factory.go
Outdated
} | ||
|
||
func (*factory) Priority(ctx context.Context, api dockerclient.APIClient) int { | ||
if api == nil { |
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.
Priority of remote driver should not depend on Docker API.
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.
Makes sense, it should just return a fixed priority.
Is there a reason that the kubernetes driver priority depends on the Docker API?
6d48dc9
to
98cfecc
Compare
Ok, leave it nil atm. As a follow-up would be good to return a typed error in here so we can show an error message for |
05f516d
to
764e2f7
Compare
So, I've changed a few more things (as another commit on top, will squash when code is good).
|
Squashed, should be good to go 🎉 |
Co-authored-by: Furkan Türkal <[email protected]> Signed-off-by: Batuhan Apaydın <[email protected]>
This patch completes the work started in creating a remote driver: - Renames the env driver to the remote driver (an alternative suggestion that should be more user-friendly) - Adds support for TLS to encrypt connections with buildkitd - Fixes outstanding review comments - Reworks the buildx create command endpoint construction to be clearer and include better support for this new driver. Signed-off-by: Justin Chadwell <[email protected]>
I want to use the remote driver. |
As a follow-up to #909, this PR introduces support for the new "remote" driver. This new PR is because the original contributor hasn't responded, so I've done my best at tidying up the review comments and completing the desired feature set.
Fixes #23.
I've also started work on some docs in jedevc@97e79d1 (not part of this PR), and will do a follow-up once the feature is merged.
CC: @developer-guy @Dentrax