File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 59
59
)
60
60
_POD_NODE_SELECTOR_VALUE : str = os .environ .get ("JO_POD_NODE_SELECTOR_VALUE" , "yes" )
61
61
62
- # A custom startup script.
63
- # This is executed as the container "command"
64
- # It writes a new a .bashrc and copies
65
- # the .bash_profile and jupyter_notebook_config.json file into place
66
- # before running 'jupyter lab'.
62
+ # A custom startup script, executed as the container "command" .
63
+ #
64
+ # It writes a new a .bashrc, copies the .bash_profile and jupyter_notebook_config.json
65
+ # files into place and then copies the file tree from /home/code/copy-to-home
66
+ # to the user's home directory before running 'jupyter lab'.
67
67
#
68
68
# Working directory is the Project directory,
69
69
# and HOME is the project instance directory
88
88
cp /etc/jupyter_notebook_config.json ~
89
89
fi
90
90
91
+ if [ -d /home/code/copy-to-home ]; then
92
+ echo "Copying copy-to-home content"
93
+ cp -R -u /home/code/copy-to-home/* ~
94
+ fi
95
+
91
96
jupyter lab --config=~/jupyter_notebook_config.json
92
97
"""
93
98
You can’t perform that action at this time.
0 commit comments