Skip to content
Snippets Groups Projects
Commit bfe9510b authored by František Dvořák's avatar František Dvořák
Browse files

Fix ownCloud home directory mounting - cleaner way

parent e58fb199
No related branches found
No related tags found
No related merge requests found
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment