-
Notifications
You must be signed in to change notification settings - Fork 24
ML-9958 remove private image #10
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
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -33,7 +33,7 @@ def setup( | |||
name="image-builder", |
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.
- You can replace this implementation by using project.build_image that creates an image without creating a function in MLRun
- You can check if there is a
default-image
parameter for the project or check if the project has a default image in the spec.spec.default_image
that will make sure the image gets built only once, instead of building every time you load the project
Except for this change, LGTM
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.
Agreeing with @GiladShapira94. You can also look at this demo for a reference.
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.
Looks good, just a couple of comments.
@@ -33,7 +33,7 @@ def setup( | |||
name="image-builder", |
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.
Agreeing with @GiladShapira94. You can also look at this demo for a reference.
project.set_default_image(project.get_param("default_image")) | ||
project.set_default_image(default_image) | ||
else: | ||
project.set_default_image(project.get_param("default_image")) |
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.
The code in the if
statement is executed only if there is no default image as a parameter, so the else
statement is redundant.
No description provided.