{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/docker-stacks/issues/25","labels_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/25/comments","events_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/25/events","html_url":"https://github.com/jupyter/docker-stacks/issues/25","id":105666000,"number":25,"title":"Unable to automate installation of bash_kernel (on top of jupyter/minimal-notebook)","user":{"login":"mjbright","id":1880109,"avatar_url":"https://avatars.githubusercontent.com/u/1880109?v=3","gravatar_id":"","url":"https://api.github.com/users/mjbright","html_url":"https://github.com/mjbright","followers_url":"https://api.github.com/users/mjbright/followers","following_url":"https://api.github.com/users/mjbright/following{/other_user}","gists_url":"https://api.github.com/users/mjbright/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbright/subscriptions","organizations_url":"https://api.github.com/users/mjbright/orgs","repos_url":"https://api.github.com/users/mjbright/repos","events_url":"https://api.github.com/users/mjbright/events{/privacy}","received_events_url":"https://api.github.com/users/mjbright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-09T19:16:29Z","updated_at":"2015-09-10T12:58:22Z","closed_at":null,"body":"OK, so this is more of a question ... than an issue.\r\n\r\nI wanted to add bash_kernel to jupyter/minimal-notebook.\r\n\r\nNot 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.\r\n\r\n        CBIN=/opt/conda/bin                                                                                                                            \r\n                                                                                                                                               \r\n        conda install pip                                                                                                                              \r\n                                                                                                                                               \r\n        sudo -u $NB_USER $CBIN/pip install --user bash_kernel                                                                                          \r\n        sudo -u $NB_USER $CBIN/python -m bash_kernel.install                                                                                           \r\n\r\nHowever these commands don't seem to be executed when invoked by the CMD of the Dockerfile.\r\nConnecting to the docker container and rerunning /start-notebook.sh installs the kernel as expected.\r\n\r\nWhy is this manual step necessary, and how what should I do so that it's not necessary?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jupyter/docker-stacks/issues/comments/139227957","html_url":"https://github.com/jupyter/docker-stacks/issues/25#issuecomment-139227957","issue_url":"https://api.github.com/repos/jupyter/docker-stacks/issues/25","id":139227957,"user":{"login":"parente","id":153745,"avatar_url":"https://avatars.githubusercontent.com/u/153745?v=3","gravatar_id":"","url":"https://api.github.com/users/parente","html_url":"https://github.com/parente","followers_url":"https://api.github.com/users/parente/followers","following_url":"https://api.github.com/users/parente/following{/other_user}","gists_url":"https://api.github.com/users/parente/gists{/gist_id}","starred_url":"https://api.github.com/users/parente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parente/subscriptions","organizations_url":"https://api.github.com/users/parente/orgs","repos_url":"https://api.github.com/users/parente/repos","events_url":"https://api.github.com/users/parente/events{/privacy}","received_events_url":"https://api.github.com/users/parente/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T12:58:22Z","updated_at":"2015-09-10T12:58:22Z","body":"> - that has to be done after creation of that user\r\n\r\nEven without the `--user` flag? I thought that would work fine without the user in existence and install to `/usr/local/` or some other global PREFIX."}}