-
Notifications
You must be signed in to change notification settings - Fork 304
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 for alternate commands and images #135
Comments
jupyterhub/dockerspawner#219 is a PR that's adding
something similar to dockerspawner, I think we should just add this to
kubespawner too...
…On Tue, Feb 20, 2018 at 9:16 AM, Jacob Tomlinson ***@***.***> wrote:
I'm keen to allow users to select their docker image and the command which
starts the singleuser notebook from a dropdown of predefined options when
they log in.
I've seen this done before in projects like kubeflow
<https://github.com/kubeflow/kubeflow> and @yuvipanda
<https://github.com/yuvipanda> has also mentioned it to me in the past.
However I am unable to find any docs on how to do this.
If my google-fu is letting me down could someone please point me to the
right place? Otherwise perhaps there should be some example docs on how to
do this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#135>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB23rQ9Vh6Us2bf-4yTAJHC1RVSl0tnks5tWv4JgaJpZM4SMUWl>
.
--
Yuvi Panda T
http://yuvi.in/blog
|
In general your spawner can have an "options form", for an example on how kubeflow does it: https://github.com/kubeflow/kubeflow/blob/30f913986607bb8414d51ef6a23fe60fec9afe3c/kubeflow/core/jupyterhub_spawner.py I think this answers your question for how to DIY it (and then make a PR with a general solution :-P) |
Awesome stuff thanks guys. I'll try and take a look at this today. |
Hello. I have made a proposal of evolution on KubeSpawner at the following ticket: jupyterhub/zero-to-jupyterhub-k8s#545 (comment) It would add a new option
or better:
Where, appart the 'display_name', all other keys are settings that can replace the setting defined in I am not a fan to let user decide how many CPU or memory he wants. Maybe as an option, but I clearly prefere a predefined list of profiles |
Reference jupyterhub#135
Reference jupyterhub#135
Reference jupyterhub#135
Reference jupyterhub#135
Reference jupyterhub#135
Why is this issue still open? I thought that #137 resolves it. Am I missing something? |
It did, you're not! |
Thanks for great work on this @gsemet !! |
Thanks! But it been some time already :) hope it helps, I use it intensively (this allows me to work on my docker images while still providing the old ones and the ones maintained by jupyter, because regressions happen) Fun fact: you can use it to request larger PVC (if it has been deleted) |
@gsemet Could you point to a comprehensive documentation / description / blog post for this feature (beyond relevant |
Good idea, I could make it someday :) There have been a (good) rework of the ui by yuvipanda, now it looks great with the combox boxes. |
ah ❤️ @yuvipanda also for this, started using this last week. Love it! |
Would really love a bit more documentation / examples about how to use this feature. |
@rabernat As a quickfix example, see the profile_list configured here: jupyterhub/zero-to-jupyterhub-k8s#994 |
What specifically is unclear or would you like showing off more in an example @rabernat? The documentation already contains an example similar to what Erik linked to. Maybe the way to go is for you to make a PR that makes the example in the docs more useful for newcomers? |
I'm keen to allow users to select their docker image and the command which starts the singleuser notebook from a dropdown of predefined options when they log in.
I've seen this done before in projects like kubeflow and @yuvipanda has also mentioned it to me in the past. However I am unable to find any docs on how to do this.
If my google-fu is letting me down could someone please point me to the right place? Otherwise perhaps there should be some example docs on how to do this.
The text was updated successfully, but these errors were encountered: