-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
Codecov Report
@@ Coverage Diff @@
## main #165 +/- ##
==========================================
+ Coverage 60.39% 60.52% +0.13%
==========================================
Files 24 24
Lines 1121 1135 +14
==========================================
+ Hits 677 687 +10
- Misses 444 448 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
build_docker_image( | ||
image_tag=local_docker_tag, | ||
context_path=dockercontext_path, |
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.
why can't we just use the containerize function directly instead of mapping this the another function?
from bentoml.bentos import contanerize
#
containerize(...)
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.
prefer not to maintain two same codes in two different repo
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.
Are we generating the Dockerfile in the expected path for the containerize command? If we are, we should use your suggestion
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.
instead of this function, just use containerize
from bentoml
since build_docker_image
is literally the same as containerize
containerize(bento_tag, local_docker_tag)
thus no need to write unit test on bentoctl side, since we will have tests to cover this on bentoml
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.
doen't the containerize command load the bentos from the bento store? build_docker_image is used to build from the path.
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.
We should try always build from bento store, only use path internally
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.
Do we still have any user facing API in bentoctl that’s working directly with a bento path?
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.
we do use the bento store available to resolve the path to the bento given a bento tag the user provides. Then we move it to a temporary directory and do the build from there. We move the bento to a temporary directory to be able to add or remove files that are required to make it deployable in the cloud.
No, we don't have any user-facing API with bento path. The user only provides the bento tag, which bentoctl resolves and copies to a directory and passes that directory to the operator. The operator is then free to make any required changes.
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.
can we unify the concept of the deployable to a bento? Sounds to me that the deployable is the same as a bento, with the target bento be a package inside the deployable bento
We already supports include folders under bentofile.yaml. I propose for all of the operator we treat it like a bento, provide a bentofile.yaml
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.
that is a good idea but would need a bit of work since bentoctl internally depends on the concept of the deployable. the 'deployable' is just a fancy bento only diff is that it is not stored in the bento store and is meant to be a throwaway.
Let's come back to this at a later time after a bit more discussion?
close this since file changes need to changes I have added on the other PR. |
Description
closes: