-
Notifications
You must be signed in to change notification settings - Fork 309
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
SwarmSpawner.image_whitelist spawn only default image #285
Comments
were you using dockerspawner master? This isn't in a release yet, though I'm trying to make the 0.11 release today. |
Yes, I use a master branch. So I will wait for update and new release. |
hi, I cloned off master ( I also tried on 0.11 and even downgraded to 0.10 and reverted to In my case, the menu to select doesn't even show up, and I'm using DockerSpawner instead of SwarmSpawner |
I have not tried master but I tried 0.11.1 with the allowed_images option and also only get the default image with no form. In my case I do not specify |
I didn't manage to reproduce this with:
and @zi-dan's config: c.JupyterHub.spawner_class = 'dockerspawner.DockerSpawner'
c.DockerSpawner.allowed_images = {
'Jupyteo All-In-One': 'jupytepide/user-spawn-notebook:dev',
'Jupyteo EO Processing': 'jupytepide/eodata-notebook:1.3.6'
} |
So seems like it is on 0.12.0.dev0 did not see that in pypi thanks |
I suppose that |
I couldn't get the spawner options working with upgrades, so I'm still using |
In my case (SwarmSpawner), With |
…rhubs 1.2.0 and up
Can folks share the exact commits or releases of jupyterhub and dockerspawner they are working with, as well as the traitlets and Python versions, and relevant sections of jupyterhub_config.py? I've at least verified that this does not affect current master (9ccedbe) of DockerSpawner (and current stable (1.2.2) or development jupyterhub/jupyterhub@ffed8f6) with this config: # dummy auth for testing
c.JupyterHub.authenticator_class = "dummy"
c.JupyterHub.hub_bind_url = 'http://0.0.0.0:8081'
c.JupyterHub.spawner_class = "docker"
c.DockerSpawner.allowed_images = {
"data8": "jupyterhub/singleuser:1.0",
"ds100": "jupyter/base-notebook",
"cs267": "jupyter/scipy-notebook",
}
c.DockerSpawner.remove = True I have traitlets 5.0.5 |
@mathematicalmichael the name of the function shouldn't matter, the decorator |
@manics thanks, I poked around the open PR's in this repo and found that, deleted my comment shortly thereafter. |
I'm going to close this one since the latest comments and testing suggest that it's working with current versions of everything. If someone can reproduce this with a jupyterhub_config.py and exact, current versions of jupyterhub and dockerspawner, please feel free to open a new Issue with that information and we'll track it down. Things are getting a little mixed up by how old this issue is, since the original report is about a feature not available in an old version, which is fixed by updating dockerspawner. |
I rebuilt my hub / images recently and was able to get the dropdown lists working again. sorry I didn't come back around and update the issue. thanks for your help as always, @minrk |
Hi Guys,
I try to use image_whitelist in my SwarmSpawner with guidance of issue #219 but always a default image is choosen. It looks like a image_whitelist options are skipped and always values of SwarmSpawner.image is taken from configuration.
My jupyter_config has following parameters:
With this config list with option is displayed but choosing any of the item loads jupyter/minimal-notebook.
Did I miss something?
The text was updated successfully, but these errors were encountered: