kopia lustrzana https://github.com/jupyterhub/repo2docker
add start script test
rodzic
f40e4ecdcb
commit
b99ec0587f
|
@ -0,0 +1,8 @@
|
|||
System - Post-build scripts
|
||||
---------------------------
|
||||
|
||||
It is possible to run scripts after you've built the environment specified in
|
||||
your other files. This could be used to, for example, download data or run
|
||||
some configuration scripts.
|
||||
|
||||
In this example, we download and install a Jupyter Notebook extension.
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
jupyter nbextension enable --py --sys-prefix ipyleaflet
|
|
@ -0,0 +1 @@
|
|||
ipyleaflet
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
export TEST_START_VAR="var is set"
|
||||
|
||||
exec "$@"
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled
|
||||
|
||||
if [ "$TEST_START_VAR" != "var is set" ]
|
||||
then
|
||||
echo "TEST_START_VAR is not set"
|
||||
exit 1
|
||||
fi
|
Ładowanie…
Reference in New Issue