-
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
Unable to automate installation of bash_kernel (on top of jupyter/minimal-notebook) #25
Comments
I haven't tried it, but I think I would opt to put all additional install steps in a new Dockerfile that derives FROM the minimal notebook like so:
I would The start-notebook.sh script is really about late-creation of the |
Yes, that was the initial approach I'd taken until I realized that this Whilst bash_kernel could install system-wide, that would solve the problem- I guess there were good reasons to move the jovyan user creation out of the On 10 September 2015 at 13:55, Peter Parente notifications@github.com
|
Ah, yes, removing
Do you have a use case in mind? I'm trying to think of one and have come up short (but it's still early in the day ;)
Yes. See issue #16. I've heard rumors that Docker 1.9 might finally have host/container user mapping. If so, and if it works on reasonable kernel versions, we might be able to remove the bandaid. |
Another possibility.
Pros
Cons
|
I'm not aware of the uid/permission problem, but I do like the sound of Although my 'bash_kernel' issue is probably a feature of that kernel - On 10 September 2015 at 14:38, Peter Parente notifications@github.com
|
But for the moment, the workaround of doing |
Sure ... but
Which I can keep doing, it's just ugly and not-automated. Thanks for the suggestions. On 10 September 2015 at 14:52, Peter Parente notifications@github.com
|
Even without the |
Oops, sorry I'll have to try that (sorry didn't know the --user flag and Will try tonight. On 10 September 2015 at 14:58, Peter Parente notifications@github.com
|
I just tried it and the kernel spec didn't install anywhere wtihout
|
I'm not sure why the modified start-notebook.sh didn't work. Can you check As a different ugly workaround, a derived container may be able to install or copy misbehaving packages like this into |
With PR #31, this Dockerfile now works:
|
After the PR #31 merge,
Also works fine if I change the UID of jovyan ( |
Thanks a lot Peter, I really appreciate the work you put in on this! |
... but ... any idea why this worked the first time (first build and run) but then I keep getting the following errors on subsequent runs? (My host is a Fedora 22, I'm running docker 1.8.1 by the way)
|
OK, found the problem. Sunday driver - I was doing a bad mount on my docker run .... hey, it's Sunday morning ;-) |
😄 |
Secure the oauth cookie better
OK, so this is more of a question ... than an issue.
I wanted to add bash_kernel to jupyter/minimal-notebook.
Not quite sure about how start-notebook.sh is being used I decided to make a modified copy into which I added the following lines before the final exec line.
However these commands don't seem to be executed when invoked by the CMD of the Dockerfile.
Connecting to the docker container and rerunning /start-notebook.sh installs the kernel as expected.
Why is this manual step necessary, and how what should I do so that it's not necessary?
The text was updated successfully, but these errors were encountered: