CIROH-UA / awi-ciroh-image

CIROH JupyterHub image repository
https://ciroh.awi.2i2c.cloud/
BSD 3-Clause "New" or "Revised" License
2 stars 6 forks source link

Investigate and Implement Integration of CyberGIS with CIROH JupyterHub #60

Open arpita0911patel opened 3 months ago

alexandermichels commented 1 month ago

Generally, we need:

Examples here: https://github.com/cybergis/cybergis-compute-core/blob/v2/configs/jupyter-globus-map.example.json

We also need to know (for file transfer purposes) what format your user data folders are. For example, our I-GUIDE Jupyterhub uses the pattern i-guide-claim-<USERNAME> where (https://github.com/cybergis/cybergis-compute-core/blob/v2/src/helpers/python/globus_user_mapping.py). We default to using the username with only ascii lowercase and numeric digits, but if you have some other pattern we can add it to our user mapping.

benlee0423 commented 1 month ago

@alexandermichels Where "path on the endpoint where user data is located" is defined? Maybe in the below location? https://gitlab.nrp-nautilus.io/prp/globus-connect/-/blob/master/globus-connect.yaml?ref_type=heads#L35 Is this path accessible from jupyter instance?

benlee0423 commented 1 month ago

@alexandermichels Globus endpoint has to be setup in the same namespace where jupyter hub is installed in k8s? We have staging and prod namespace in k8s, where staging and prod resources for jupyterhub are installed.

alexandermichels commented 1 month ago

I haven't deployed globus with K8s, but based on the README in the repo it appears the data is stored in /data/gridftp-save/. The Jupyter user containers don't need to know about this path, but the Globus transfer is being executed by the Globus pod so we need to tell it where to put the files.

I don't think the namespace matters for Compute as long as you can make the data accessible to both the Globus pod and the user Jupyter pod, but I am not an expert on PVs/PVCs.

benlee0423 commented 1 month ago

@alexandermichels I have emailed the information requested for testing purpose. This information will be different what we will have in our prod k8s cluster.

Now, I have assigned to subscription status, and please let me know how to add the Globus user cybergis@access-ci.org to the endpoint.