-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Shorten path to notebook work directory? #23
Comments
Would it be ok if the default working directory was |
I forgot to /cc @costerwi who requested this change originally. My vote: Leave it as is. It's not complicating anything in the startup script. We'd still need the skeleton logic to deal with jupyter config files, extensions, etc. that the user decides to mount at |
Sounds good to me. I've enjoyed the vision and direction you've laid out here, and a single directory is much cleaner (no dotfiles, misc. config, etc. showing on the dashboard) |
I initially separated the It seems messy to have the notebooks intertwined within /home/jovyan but I don't have a strong argument against the current momentum. I have no limitations in the current image. |
A potential benefit for creating a separate notebook directory within the Dockerfile (before jovyan and their home directory exists) is that it would allow dependent images to easily COPY starter notebooks into that directory. Of course, this is solvable in other ways as well. |
What if the minimal-notebook Dockerfile does create the Solves both the problem of subimages wanting to copy config files into ~/.jupyter and notebooks into ~/work in one fell swoop. |
Yes, I think that would be a working option. You don't need to change minimal-notebook; any subimage could copy into those directories. |
Confirmed that subimages can COPY or ADD files anywhere in |
Think we agreed to keep path as-is. Current stack setup should allow COPY/ADD from Dockerfiles or mounting from host without any issues. |
Currently, the notebook working directory is in /home/jovyan/work which is borrowed from the original setup from the original http://github.com/jupyter/docker-demo-images Dockerfile. It has been raised that this path is a bit long (#21 (comment)) and that it introduces an extra if block check in the start-notebook.sh script to copy in skeleton files post jovyan user creation in the case where the work directory is host mounted.
The first problem might be something we can change albeit at the cost of breaking existing users of the image. The second problem is not exclusive to the notebook directory location, however: if the user host mounts a Jupyter config or any other file in the home directory, the skeleton file copy logic is required.
Anything we can / should do?
The text was updated successfully, but these errors were encountered: