Added config volume

This commit is contained in:
2022-10-01 19:10:15 -07:00
parent f06f00188c
commit e62e2c2919
6 changed files with 12 additions and 17 deletions
+5 -5
View File
@@ -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} "$@"