Files
docker-stacks/base-notebook/start-singleuser.sh
Min RK 0805573e09 invoke start.sh in start-singleuser.sh
ensures common behavior of things like GRANT_SUDO
2017-06-07 12:49:48 +02:00

23 lines
502 B
Bash
Executable File

#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
set -e
notebook_arg=""
if [ -n "${NOTEBOOK_DIR:+x}" ]
then
notebook_arg="--notebook-dir=${NOTEBOOK_DIR}"
fi
. /usr/local/bin/start.sh jupyterhub-singleuser \
--port=${JPY_PORT:-8888} \
--ip=0.0.0.0 \
--user=$JPY_USER \
--cookie-name=$JPY_COOKIE_NAME \
--base-url=$JPY_BASE_URL \
--hub-prefix=$JPY_HUB_PREFIX \
--hub-api-url=$JPY_HUB_API_URL \
${notebook_arg} \
$@