mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 05:52:57 +00:00
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:
@@ -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 $@"
|
||||
|
||||
|
Reference in New Issue
Block a user