Skip to content

Conversation

@VeckoTheGecko
Copy link
Collaborator

@VeckoTheGecko VeckoTheGecko commented Feb 14, 2025

This PR updates the instructions to setting up the SURF environments. Now we're only using one workspace (32gb ram, 4 cores) with an attached storage (1.5Tb). Users can create their own folders in data/shared-storage/{group-name} which everyone can see but only the user creating it can edit.

@ammedd would you mind doing cat ~/data/shared-storage/nick/text.txt and rm ~/data/shared-storage/nick/text.txt in the instance to check that the permissions work properly? The first command should show the file contents, and the second should fail.

Closes #123

@ammedd
Copy link
Collaborator

ammedd commented Feb 14, 2025

Works as expected:

edaniels@virtualship:~$ cat ~/data/shared-storage/nick/text.txt
Some random data
edaniels@virtualship:~$ rm ~/data/shared-storage/nick/text.txt
rm: remove write-protected regular file '/home/edaniels/data/shared-storage/nick/text.txt'? y
rm: cannot remove '/home/edaniels/data/shared-storage/nick/text.txt': Permission denied

@VeckoTheGecko
Copy link
Collaborator Author

VeckoTheGecko commented Feb 14, 2025

Cool! I think we're good then. I have also added notes in the notebook (Course Facilitator notes) mentioning how to update the conda environment with the latest version of virtualship.

Feel free to review the notebook

Copy link
Collaborator

@ammedd ammedd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good and seems to work. Will do more (general) testing this afternoon

"```\n",
"\n",
"The `data/{your storage name}` folder is your persistent storage. This is the primary place you should store your `virtualship` configs and content relevant to this unit.\n",
"The `data/shared-storage` folder is your persistent storage. Here you can make a folder (e.g., `mkdir data/shared-storage/{your-name}` replacing `{your-name}` with your name) to house your work for the unit. This folder will be visible to anyone using the workspace, but only you will be able to make edits to it. This is the primary place you should store your `virtualship` configs and content relevant to this unit.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replacing {your-name} with your name)
suggestion: add (group)
replacing {your-name} with your (group) name)

"# conda environments:\n",
"#\n",
"base * /etc/miniconda\n",
"virtualship /etc/miniconda/envs/virtualship`\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line 68 remove (base) $

@erikvansebille erikvansebille merged commit 39047a7 into main Feb 19, 2025
10 checks passed
@erikvansebille erikvansebille deleted the update-surf branch February 19, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updates to SURF workspace environments

4 participants