-
Notifications
You must be signed in to change notification settings - Fork 301
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
feat: Support ImageSpec as base image #2277
Conversation
Signed-off-by: Kevin Su <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2277 +/- ##
==========================================
- Coverage 83.79% 83.31% -0.49%
==========================================
Files 332 309 -23
Lines 25147 24057 -1090
Branches 3703 3493 -210
==========================================
- Hits 21071 20042 -1029
+ Misses 3450 3387 -63
- Partials 626 628 +2 ☔ View full report in Codecov by Sentry. |
cc @cjidboon94 This PR can address your issue as well. you can have an ImageSpec like image1 = ImageSpec(packages=["scikit-learn"], pip_index=<index1>)
image2 = ImageSpec(base_image=image1, packages=["tensorflow"], pip_index=<index2>) |
While it would solve it, it feels wasteful if |
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.
TEST
Signed-off-by: Kevin Su <[email protected]> Signed-off-by: Jan Fiedler <[email protected]>
Tracking issue
NA
Why are the changes needed?
It enables users to easily reuse the ImageSpec and merge different ImageSpecs together.
What changes were proposed in this pull request?
ImageBuildEngine will build the base image if the base image is an ImageSpec.
How was this patch tested?
pyflyte run --remote ..
Setup process
Screenshots
Check all the applicable boxes
Related PRs
NA
Docs link
NA