This is an automated email from the ASF dual-hosted git repository.
lahirujayathilake pushed a commit to branch cybershuttle-staging
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/cybershuttle-staging by this
push:
new 0ace0dfd58 relative dataset path for the spawner
0ace0dfd58 is described below
commit 0ace0dfd58bbbb5fc4145c574050c6efbf795756
Author: lahiruj <[email protected]>
AuthorDate: Sun Mar 30 18:54:10 2025 -0400
relative dataset path for the spawner
---
.../research-framework/research-hub/compose/jupyterhub_config.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
a/modules/research-framework/research-hub/compose/jupyterhub_config.py
b/modules/research-framework/research-hub/compose/jupyterhub_config.py
index 5e5dcb46a0..f829ff1d51 100644
--- a/modules/research-framework/research-hub/compose/jupyterhub_config.py
+++ b/modules/research-framework/research-hub/compose/jupyterhub_config.py
@@ -31,7 +31,7 @@ class CustomDockerSpawner(DockerSpawner):
options = {}
if hasattr(self, 'handler') and self.handler:
- qs_args = self.handler.request.arguments # eg. {'git':
[b'https://github...'], 'dataPath': [b'/home/...']}
+ qs_args = self.handler.request.arguments # eg. {'git':
[b'https://github...'], 'dataPath': [b'bmtk']}
if 'git' in qs_args:
options['git'] = qs_args['git'][0].decode('utf-8')
if 'dataPath' in qs_args:
@@ -61,9 +61,10 @@ class CustomDockerSpawner(DockerSpawner):
}
# If dataPath was provided, mount it read-only
- data_path = self.user_options.get("dataPath")
- if data_path:
- volumes_dict[data_path] = {
+ data_subfolder = self.user_options.get("dataPath")
+ if data_subfolder:
+ host_data_path = f"/home/exouser/mnt/{data_subfolder}"
+ volumes_dict[host_data_path] = {
'bind': f"/home/jovyan/shared_data_tmp",
'mode': 'ro'
}