From e58fb19958b021530e6d6ab4e538fb3261fb6dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Thu, 30 May 2024 17:30:16 +0000 Subject: [PATCH] Fix ownCloud home directory mounting --- cesnet-central/deployments/fullhub.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml index ef63af9..08a4cea 100644 --- a/cesnet-central/deployments/fullhub.yaml +++ b/cesnet-central/deployments/fullhub.yaml @@ -79,6 +79,14 @@ singleuser: args: - "--CondaKernelSpecManager.env_filter='/opt/conda$'" image: "valtri/single-user:jupyter-4e-collab" + # + # Dirty hack to make remote mount working properly: + # + # 1) wait for webdav sidecar image to kick in + # 2) change directory to the mounted version of itself + # 3) launch notebook server + # + 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" ] hub: services: -- GitLab