diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-18 14:56:14 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-18 14:56:14 -0500 |
commit | 34575a023b19cdafcae0db945a8c8d8e44e3455f (patch) | |
tree | 5d60646540700cdc5fc1e7ee1c719b3c94e16a7d /scripts | |
parent | 30ea4ba9222c0d9b24bf401639eddef4e5b9ef89 (diff) | |
download | docker-pipeline-nb-34575a023b19cdafcae0db945a8c8d8e44e3455f.tar.gz |
Refactor build/publish
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/start.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/start.sh b/scripts/start.sh index 6298bbd..c773303 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,6 +1,13 @@ #!/bin/bash -if [[ ${#} == 0 ]]; then - exec "bash" -else +set -vxe +if [[ "${@}" == bash* ]]; then exec "${@}" fi + +if [[ -n ${JUPYTER_API_TOKEN} ]]; then + exec jupyterhub-singleuser --ip=0.0.0.0 "${@}" +elif [[ -n ${JUPYTER_ENABLE_LAB} ]]; then + exec jupyter labhub --ip=0.0.0.0 "${@}" +else + exec jupyter notebook --ip=0.0.0.0 "${@}" +fi |