From ec837a8d19c353619ddef2d827c71998473692de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Tue, 18 Jun 2024 16:23:43 +0000 Subject: [PATCH] User home at ownCloud for testing instance --- testing/deployments/hub.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/testing/deployments/hub.yaml b/testing/deployments/hub.yaml index e342db0..4ade083 100644 --- a/testing/deployments/hub.yaml +++ b/testing/deployments/hub.yaml @@ -20,11 +20,7 @@ singleuser: # keep resource limits in sync with: # - profileList storage: - capacity: 20Gi - dynamic: - pvcNameTemplate: claim-{userid}{servername} - volumeNameTemplate: vol-{userid}{servername} - storageAccessModes: ["ReadWriteMany"] + type: none extraVolumes: - name: cvmfs-host hostPath: @@ -51,14 +47,11 @@ singleuser: - name: cvmfs-host mountPath: "/cvmfs:shared" - name: b2drop - mountPath: '/mnt/b2drop:shared' + mountPath: '/home/jovyan/b2drop:shared' - name: owncloud - mountPath: '/mnt/owncloud:shared' + mountPath: '/home/jovyan:shared' # - name: scratch # mountPath: '/scratch' - lifecycleHooks: - postStart: - exec: { "command": ["/bin/sh", "-c", "ln -snf /mnt/b2drop $HOME/b2drop; ln -snf /mnt/owncloud $HOME/owncloud; for d in cvmfs; do if ! test -e $HOME/$d; then ln -snf /$d $HOME/$d; fi; done; mkdir -p /home/jovyan/.notebookCheckpoints"] } memory: limit: 4G guarantee: 512M @@ -117,7 +110,7 @@ singleuser: # 3) launch notebook server # i=0 - while ! grep '^webdav-fs: /mnt/owncloud ' /proc/mounts && test $i -lt 30; do + while ! grep '^webdav-fs: /home/jovyan ' /proc/mounts && test $i -lt 30; do echo 'Waiting for ownClound mount...' sleep 0.5 i=$((i+1)) -- GitLab