Added config volume
This commit is contained in:
@@ -4,10 +4,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
# The Jupyter command to launch
|
||||
# JupyterLab by default
|
||||
DOCKER_STACKS_JUPYTER_CMD="${DOCKER_STACKS_JUPYTER_CMD:=lab}"
|
||||
|
||||
if [[ -n "${JUPYTERHUB_API_TOKEN}" ]]; then
|
||||
echo "WARNING: using start-singleuser.sh instead of start-notebook.sh to start a server associated with JupyterHub."
|
||||
exec /usr/local/bin/start-singleuser.sh "$@"
|
||||
@@ -18,4 +14,8 @@ if [[ "${RESTARTABLE}" == "yes" ]]; then
|
||||
wrapper=""
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/start.sh ${wrapper} jupyter ${DOCKER_STACKS_JUPYTER_CMD} ${NOTEBOOK_ARGS} "$@"
|
||||
if [ ! -f /home/${NB_USER}/.jupyter/jupyter_notebook_config.py ]; then
|
||||
jupyter notebook --generate-config
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/start.sh ${wrapper} jupyter lab ${NOTEBOOK_ARGS} "$@"
|
||||
|
||||
Reference in New Issue
Block a user