Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
user-jupyterlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jupyterjsc
k8s
images
user-jupyterlab
Commits
52a14e59
Commit
52a14e59
authored
1 year ago
by
Tim Kreuzer
Browse files
Options
Downloads
Patches
Plain Diff
add system specific config
parent
5c0c14d1
No related branches found
No related tags found
1 merge request
!2
restructure User Images
Pipeline
#183611
passed
1 year ago
Stage: build
Stage: build-lmod
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lmod/files/start_jupyter.sh
+19
-1
19 additions, 1 deletion
lmod/files/start_jupyter.sh
with
19 additions
and
1 deletion
lmod/files/start_jupyter.sh
+
19
−
1
View file @
52a14e59
...
...
@@ -127,9 +127,26 @@ cleanup () {
echo
"
$(
date
)
- Cleanup done."
}
update_config
()
{
if
[[
-f
${
EBROOTJUPYTERLAB
}
/etc/jupyter/jupyter_notebook_config.py
]]
;
then
echo
"
$(
date
)
- Add system specific config ..."
echo
""
>>
${
DIR
}
/config.py
cat
${
EBROOTJUPYTERLAB
}
/etc/jupyter/jupyter_notebook_config.py
>>
${
DIR
}
/config.py
for
path
in
${
JUPYTER_EXTRA_LABEXTENSIONS_PATH
//
:/
$'
\n
'
}
;
do
echo
"c.LabServerApp.extra_labextensions_path.append('
$path
')"
>>
${
JUPYTER_LOG_DIR
}
/config.py
done
echo
"
$(
date
)
- Add system specific config done"
fi
if
[[
-f
${
EBROOTJUPYTERLAB
}
/bin/update_favorites_json
]]
;
then
# update favorite-dirs with $HOME,$PROJECT,$SCRATCH,
echo
"
$(
date
)
- Update favorites"
${
EBROOTJUPYTERLAB
}
/bin/update_favorites_json
fi
}
start
()
{
echo
"
$(
date
)
- Start jupyterhub-singleuser ..."
jupyterhub-singleuser 2>&1 |
tee
${
JUPYTER_LOG_DIR
}
/stdout
jupyterhub-singleuser
--config
${
DIR
}
/config.py
2>&1 |
tee
${
JUPYTER_LOG_DIR
}
/stdout
echo
"
$(
date
)
- Start jupyterhub-singleuser done"
}
...
...
@@ -138,5 +155,6 @@ set_env
load_modules
mount_b2drop
mount_just
update_config
start
cleanup
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment