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
This commit is contained in:
Peter Parente
2015-09-16 22:48:32 -04:00
parent 735c520486
commit 678b64e9e4
7 changed files with 21 additions and 18 deletions

View File

@@ -11,5 +11,6 @@ if [ ! -z "$GRANT_SUDO" ]; then
echo "$NB_USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/notebook
fi
# Start supervisord in foreground, PID1
exec supervisord -n -c /etc/supervisor/supervisord.conf
# Start the notebook server
exec su $NB_USER -c "env PATH=$PATH jupyter notebook $@"