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

Devel fullhub: experiments with ownCloud as home directory

parent 88cc2fe3
No related branches found
No related tags found
No related merge requests found
...@@ -21,11 +21,7 @@ singleuser: ...@@ -21,11 +21,7 @@ singleuser:
# - documentation/content/en/users/dev-env/notebooks/data/_index.md # - documentation/content/en/users/dev-env/notebooks/data/_index.md
# - 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:
...@@ -52,14 +48,11 @@ singleuser: ...@@ -52,14 +48,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 scratch; do if ! test -e $HOME/$d; then ln -snf /$d $HOME/$d; fi; done; mkdir -p /home/jovyan/.notebookCheckpoints"] }
memory: memory:
limit: 6G limit: 6G
guarantee: 128M guarantee: 128M
...@@ -228,11 +221,13 @@ hub: ...@@ -228,11 +221,13 @@ hub:
spawner.extra_containers.append( spawner.extra_containers.append(
{ {
"name": "owncloud", "name": "owncloud",
"image": "valtri/webdav-rclone-sidecar:sha-1e36c50", "image": "valtri/webdav-rclone-sidecar:95629ff",
"args": ["bearer_token_command=cat " + token_path], "args": ["bearer_token_command=cat " + token_path],
"env": [ "env": [
{"name": "WEBDAV_URL", "value": "https://ocis.aaitest.owncloud.works/remote.php/webdav/"}, {"name": "WEBDAV_URL", "value": "https://ocis.aaitest.owncloud.works/remote.php/webdav/"},
{"name": "WEBDAV_VENDOR", "value": "other"}, {"name": "WEBDAV_VENDOR", "value": "other"},
# XXX: strict permissions needed for .local/share/jupyter/runtime/jupyter_cookie_secret
{"name": "MOUNT_OPTS", "value": "--file-perms=0600 --dir-perms=0770"},
{"name": "MOUNT_PATH", "value": "/owncloud"}, {"name": "MOUNT_PATH", "value": "/owncloud"},
], ],
"resources": self.sidecar_resources, "resources": self.sidecar_resources,
......
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