mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 11:32:57 +00:00

stacks easily usable with JupyterHub. * pip install jupyterhub to gain access to the jupyterhub-singleuser startup script, which starts a single-user instance of the Notebook server * Add shell script to wrap jupyterhub-singleuser script; use as alternate Docker command fixes #181 (c) Copyright IBM Corp. 2016
20 lines
366 B
Bash
Executable File
20 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
notebook_arg=""
|
|
if [ -n "${NOTEBOOK_DIR:+x}" ]
|
|
then
|
|
notebook_arg="--notebook-dir=${NOTEBOOK_DIR}"
|
|
fi
|
|
|
|
exec jupyterhub-singleuser \
|
|
--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} \
|
|
$@
|