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

User home at ownCloud for testing instance

parent 9294c5ca
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,7 @@ singleuser: ...@@ -20,11 +20,7 @@ singleuser:
# keep resource limits in sync with: # keep resource limits in sync with:
# - profileList # - profileList
storage: storage:
capacity: 20Gi type: none
dynamic:
pvcNameTemplate: claim-{userid}{servername}
volumeNameTemplate: vol-{userid}{servername}
storageAccessModes: ["ReadWriteMany"]
extraVolumes: extraVolumes:
- name: cvmfs-host - name: cvmfs-host
hostPath: hostPath:
...@@ -51,14 +47,11 @@ singleuser: ...@@ -51,14 +47,11 @@ singleuser:
- name: cvmfs-host - name: cvmfs-host
mountPath: "/cvmfs:shared" mountPath: "/cvmfs:shared"
- name: b2drop - name: b2drop
mountPath: '/mnt/b2drop:shared' mountPath: '/home/jovyan/b2drop:shared'
- name: owncloud - name: owncloud
mountPath: '/mnt/owncloud:shared' mountPath: '/home/jovyan:shared'
# - name: scratch # - name: scratch
# mountPath: '/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: memory:
limit: 4G limit: 4G
guarantee: 512M guarantee: 512M
...@@ -117,7 +110,7 @@ singleuser: ...@@ -117,7 +110,7 @@ singleuser:
# 3) launch notebook server # 3) launch notebook server
# #
i=0 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...' echo 'Waiting for ownClound mount...'
sleep 0.5 sleep 0.5
i=$((i+1)) i=$((i+1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment