We are running Jupyterhub with custom singleuser images that run Notebook.
Now, I am trying to build an alternative image, that does start up another app by default. Using the proxy the app is already available at /user/username/my-app, but I can not get Jupyterhub to change the defaultURL based on the image selected.
Any hints on how to configure this? Is it possible to just do this in the image from the start script or do we have to adapt the JupyterHub config as shown here for example?
By default JupyterHub starts your singleuser server and directs the user to /user/<username>. The singleuser server can then redirect to whereever it wants so you should be able to do it in the singleuser image.
For example, I think you could set c.JupyterNotebookApp.default_url='/my-app' or c.LabApp.default_url='/my-app' in your Jupyter server config file in the image.
Yes, that is indeed possible. For now I was just trying to create an image that does not require a change to the server config. Probably means, that the service replacing notebook would have to run at /labs as well and on the same port, with all the other authenticator logic in place.
Maybe overthinking it and we should just create overrides on the server for different profiles.