Files
docker-stacks/minimal-notebook/start-singleuser.sh
Justin Tyberg cf78782f87 Add single-user scripts to minimal-notebook stack to make notebook
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
2016-04-12 15:37:03 -04:00

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} \
$@