-
Notifications
You must be signed in to change notification settings - Fork 949
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
builder/cli/daemon: integrate with buildkit@v0.3.3 #2779
builder/cli/daemon: integrate with buildkit@v0.3.3 #2779
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2779 +/- ##
==========================================
+ Coverage 67.27% 69.12% +1.84%
==========================================
Files 279 285 +6
Lines 17603 17754 +151
==========================================
+ Hits 11842 12272 +430
+ Misses 4429 4083 -346
- Partials 1332 1399 +67
|
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 overall. Thanks for you great job!
if d.config.EnableBuilder { | ||
go func() { | ||
logrus.Info("serving builder server...") | ||
if err := d.runBuilderServer(); err != 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.
There are three type of service here, cri service, http server and builder server. A little messy to start them. We can make an abstract interface from them and manage them uniformity later.
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.
yeah
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.
if builder is enabled and start builder server failed, it is an error not a warning.
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.
done! thanks @yyb196
cli/build/opts.go
Outdated
} | ||
namedRef = reference.TrimTagForDigest(reference.WithDefaultTagIfMissing(namedRef)) | ||
tagList = append(tagList, namedRef.String()) | ||
|
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.
redundant empty line
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.
done
v0.4.0 version of buildkit is using very higher golang version. We don't want to follow this so fast. This is why we use v0.3.3 here. Using following command to add the packages: govendor fetch github.com/moby/buildkit/...@v0.3.3 govendor fetch github.com/tonistiigi/fsutil@2862f6bc5ac9b97124e552a5c108230b38a1b0ca govendor fetch github.com/hashicorp/go-immutable-radix::github.com/tonistiigi/go-immutable-radix@826af9ccf0feeee615d546d69b11f8e98da8c8f1 Signed-off-by: Wei Fu <fuweid89@gmail.com>
LGTM, greatly thanks for your work. |
@@ -35,7 +35,8 @@ type Daemon struct { | |||
ctrdDaemon *supervisord.Daemon | |||
|
|||
// ctrdClient is grpc client connecting to the containerd | |||
ctrdClient ctrd.APIClient | |||
ctrdClient ctrd.APIClient | |||
|
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.
need format?
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.
it is already be format.
PouchContainer uses builkit to support build functionality. This is commit which brings very basic build functionality and there is a lot of improvements will be supported in following pull request. This builder functionality is controlled by daemon flag `--enable-builder`. By default, the builder is disable. If it is stable and under fully testing, we will make it enable by default. Signed-off-by: Wei Fu <fuweid89@gmail.com>
LGTM |
Ⅰ. Describe what this PR did
PouchContainer uses builkit to support build functionality. This is
commit which brings very basic build functionality and there is a lot of
improvements will be supported in following pull request.
This builder functionality is controlled by daemon flag
--enable-builder
. By default, the builder is disable. If it is stableand under fully testing, we will make it enable by default.
Ⅱ. Does this pull request fix one issue?
#1919
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
add one case
Ⅳ. Describe how to verify it
CI
Ⅴ. Special notes for reviews