-
Notifications
You must be signed in to change notification settings - Fork 7
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
allow default image to be specified in server start request #304
Comments
Question: in this case, would it then be possible for projects to not include a Dockerfile? |
Yes, they wouldn't need the Dockerfile or the |
We could also then create a template for this use case, (e.g. "Course Template") which excludes those files & explains how to use in the readme. |
@ableuler my plan for this is as follows:
Additional questions/considerations:
|
An additional question is whether we should make it possible for a non-public image to be used in the API call. In which case we would have to also ask for the credentials to download/access the image. I think this is doable though. |
I like this plan. Although it's not exactly a default image that is provided that the notebook-service falls back to (as suggested by the issue title), but rather an image override. But I think that's actually more convenient to work with. What do you think @lorenzo-cavazzi, @rokroskar?
Yes, I think at least for images from the GitLab registry we should also be able to use non-public ones.
If the user specifically selects an image which can not be found or accessed I think this should throw an error that the UI can handle adequately.
Being able to use publicly available images from any registry would be nice, yes. |
I like the plan!
I don't know the extra effort required for supporting public images from other registries. If it's easy enough, I would try to implement it after |
I think private images from a gitlab registry are almost supported by default already. It's just that atm we don't add the image pull secret on projects that are public, so once the changes described here are implemented we would simply add it on every launch. It's less of an issue now since #435 has been merged. For other registries we would need some other mechanism, e.g. storing the docker password in an environment variable in the project, for example. |
After discussing with @olevski , we agreed on these steps to implement the feature.
|
BREAKING CHANGE: Requires SwissDataScienceCenter/renku-notebooks#304 fix #1105
* support custom registry images for new interactive environments * show image source on status popover BREAKING CHANGE: Requires SwissDataScienceCenter/renku-notebooks#304 fix #1105
It should be possible to override the default image for a notebook launch in the case that an image built for the particular commit is not available. The use-case would be for situations where it isn't desirable to always build images but instead to provide a single stable image (e.g. courses, tutorials etc.)
This feature should be complemented by a change in the project configuration that allows users to specify a default image.
related to SwissDataScienceCenter/renku#646
The text was updated successfully, but these errors were encountered: