Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
notebooks-operations
Commits
bfe9510b
Commit
bfe9510b
authored
10 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Fix ownCloud home directory mounting - cleaner way
parent
e58fb199
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cesnet-central/deployments/fullhub.yaml
+25
-8
25 additions, 8 deletions
cesnet-central/deployments/fullhub.yaml
with
25 additions
and
8 deletions
cesnet-central/deployments/fullhub.yaml
+
25
−
8
View file @
bfe9510b
...
@@ -79,14 +79,31 @@ singleuser:
...
@@ -79,14 +79,31 @@ singleuser:
args
:
args
:
-
"
--CondaKernelSpecManager.env_filter='/opt/conda$'"
-
"
--CondaKernelSpecManager.env_filter='/opt/conda$'"
image
:
"
valtri/single-user:jupyter-4e-collab"
image
:
"
valtri/single-user:jupyter-4e-collab"
#
cmd
:
jupyterhub-singleuser-webdav-wrapper
# Dirty hack to make remote mount working properly:
extraFiles
:
#
wait-owncloud.sh
:
# 1) wait for webdav sidecar image to kick in
mode
:
0755
# 2) change directory to the mounted version of itself
mountPath
:
/usr/local/bin/jupyterhub-singleuser-webdav-wrapper
# 3) launch notebook server
stringData
:
|-
#
#! /bin/sh
cmd
:
[
"
/bin/sh"
,
"
-c"
,
"
i=0;
while
!
grep
'^webdav-fs:
/home/jovyan
'
/proc/mounts
&&
test
$i
-lt
30;
do
echo
'Waiting
for
ownClound
mount...';
sleep
0.5;
i=$((i+1));
done;
cd
.;
jupyterhub-singleuser"
]
#
# Dirty hack to make remote mount on home directory working properly:
#
# 1) wait for webdav sidecar image to kick in
# 2) change directory to the mounted version of itself
# 3) launch notebook server
#
i=0
while ! grep '^webdav-fs: /home/jovyan ' /proc/mounts && test $i -lt 30; do
echo 'Waiting for ownClound mount...'
sleep 0.5
i=$((i+1))
done
cd .
exec jupyterhub-singleuser "$@"
hub
:
hub
:
services
:
services
:
...
...
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