Commit Graph

12 Commits

Author SHA1 Message Date
Peter Parente
6d5cd67528 Make jovyan the default user for the docker cmd
* Switch to jovyan at the end of every Dockerfile
* Document --user root requirement for NB_UID and GRANT_SUDO flags

(c) Copyright IBM Corp. 2015
2015-12-27 21:05:48 -05:00
Peter Parente
f5bb3d4801 Remove need to quote >1 args to start-notebook
(c) Copyright IBM Corp. 2015
2015-10-20 22:43:32 -04:00
Peter Parente
ad99f8c74f Remove trivial env vars, doc command line args
* Remove PORT and INTERFACE env vars which can conflict with other systems (e.g., Mesos)
* Document command line pass-through to start-notebook.sh

(c) Copyright IBM Corp. 2015
2015-10-19 09:36:28 -04:00
Peter Parente
4c34446dc7 Fix jovyan hardcode in start-notebook.sh
Contribution (c) Copyright IBM Corp. 2015
2015-09-22 20:51:50 -04:00
Peter Parente
678b64e9e4 Swap tini for supervisord
* Pass $@ args to start-notebook.sh
* Set tini as entrypoint, but keep start-notebook.sh as easily overridable CMD
* su to jovyan user within start-notebook.sh script

Contribution (c) Copyright IBM Corp. 2015
2015-09-22 20:51:18 -04:00
Peter Parente
0c508efe4e Set group=users on home and conda dir 2015-09-12 20:37:53 -04:00
Peter Parente
dba9977525 Create jovyan in Dockerfile, reset UID at startup
* Create user jovyan with UID=1000 in the default users group in the Dockerfile
* Set group ownership of user home and conda to root to avoid 'users' group from host access when mounted
* Set stick bit on both paths so root owns subdirs too
* Change jovyan UID if NB_UID is specified and is not the default 1000

Contribution (c) Copyright IBM Corp. 2015
2015-09-10 23:46:31 -04:00
Peter Parente
5bc8eb1822 Make jovyan name / paths constant 2015-08-30 09:11:19 -04:00
Peter Parente
80c8475276 Improve start-notebook.sh checks
* Only create jovyan and set perms if user does not exist
* Allow docker host mount for NB_WORK: copy skel files if useradd fails because home dir already exists

Contribution (c) Copyright IBM Corp. 2015
2015-08-28 23:45:01 -04:00
Peter Parente
c4616560cf Make subimages compatible with late user creation
* Always remain as root during install
* Put kernel specs in system path, not user home
* Create user work directory at startup
* Note this is in 4.0 and up images, not 3.2

Contribution (c) Copyright IBM Corp. 2015
2015-08-28 23:43:57 -04:00
Carl Osterwisch
30932a3b12 Revert to using supervisord to launch notebook
Used to relaunch notebook and collect logging data.
2015-08-28 23:39:08 -04:00
Carl Osterwisch
7fad0c43f6 Move useradd, enable_sudo.sh, and server launch into start-notebook.sh
Provides ability to specify NB_USER and NB_UID at docker run time rather than build time.
2015-08-28 23:39:08 -04:00