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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jupyterjsc
k8s
images
user-jupyterlab
Commits
72ffe668
Commit
72ffe668
authored
1 year ago
by
alice grosch
Browse files
Options
Downloads
Patches
Plain Diff
Test cleanup
parent
822393c0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
restructure User Images
Pipeline
#166158
passed
1 year ago
Stage: build
Stage: build-lmod
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lmod/files/start_jupyter.sh
+21
-0
21 additions, 0 deletions
lmod/files/start_jupyter.sh
with
21 additions
and
0 deletions
lmod/files/start_jupyter.sh
+
21
−
0
View file @
72ffe668
...
@@ -97,6 +97,26 @@ load_modules () {
...
@@ -97,6 +97,26 @@ load_modules () {
echo
"
$(
date
)
- Load modules done"
echo
"
$(
date
)
- Load modules done"
}
}
cleanup
()
{
echo
"
$(
date
)
- Start cleanup."
mount |
grep
"/mnt/B2DROP"
>
/dev/null
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
echo
"
$(
date
)
- Unmounted /mnt/B2DROP."
else
echo
"
$(
date
)
- B2DROP not mounted, do not unmount."
fi
mount |
grep
"/mnt/JUST_HOME"
>
/dev/null
EC
=
$?
if
[[
$EC
-eq
0
]]
;
then
echo
"
$(
date
)
- Unmounted /mnt/JUST_HOME."
else
echo
"
$(
date
)
- JUST not mounted, do not unmount."
fi
echo
"
$(
date
)
- Cleanup done."
}
start
()
{
start
()
{
echo
"
$(
date
)
- Start jupyterhub-singleuser ..."
echo
"
$(
date
)
- Start jupyterhub-singleuser ..."
timeout
30d jupyterhub-singleuser 2>
${
JUPYTER_LOG_DIR
}
/stderr 1>
${
JUPYTER_LOG_DIR
}
/stdout
timeout
30d jupyterhub-singleuser 2>
${
JUPYTER_LOG_DIR
}
/stderr 1>
${
JUPYTER_LOG_DIR
}
/stdout
...
@@ -109,3 +129,4 @@ load_modules
...
@@ -109,3 +129,4 @@ load_modules
mount_b2drop
mount_b2drop
mount_just
mount_just
start
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