2022-08-17 13:53:57 +01:00
|
|
|
#!/bin/sh -x
|
|
|
|
VENVDIR=/v
|
|
|
|
DATADIR=/data
|
|
|
|
JUPYDIR=/root/.jupyter
|
|
|
|
|
|
|
|
JUPYDEF=/.default.py
|
|
|
|
JUPYCNF=$JUPYDIR/jupyter_lab_config.py
|
2022-08-17 16:23:26 +01:00
|
|
|
JUREQFL=$DATADIR/requirements
|
2022-08-17 13:53:57 +01:00
|
|
|
|
|
|
|
cd $DATADIR
|
|
|
|
. $VENVDIR/bin/activate
|
|
|
|
|
|
|
|
[ ! -f $JUPYCNF ] && cp $JUPYDEF $JUPYCNF
|
2022-08-17 16:23:26 +01:00
|
|
|
[ -f $JUREQFL ] && pip install -Ur $JUREQFL
|
2022-08-17 13:53:57 +01:00
|
|
|
|
2022-08-17 16:44:14 +01:00
|
|
|
jupyter lab build
|
|
|
|
|
2022-08-17 13:53:57 +01:00
|
|
|
( $@ )
|