Conversation
universal:2 image is old, carries a lot of bloat which fills up all space on 32 GB codespace. Most of the packages it downloads are not required for Matplotlib development.
Right now, one has to select 4-core codespace. Removing this gives option to select either 2-core or 4-core codespace.
Without this, it can cause permission issues when creating a codespace.
This allows codespace to be used via SSH
This will be required to create conda environment in setup.sh
The universal image used /home/codespace This ubuntu image uses /home/vscode We can generalize this by using $HOME and, ubuntu image has .condarc file at home location (~)
|
Thank you for opening your first PR into Matplotlib! If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process. You can also join us on discourse chat for real-time discussion. For details on testing, writing docs, and our review process, please see the developer guide. We strive to be a welcoming and open project. Please follow our Code of Conduct. |
PR summary
This PR updates the
mcr.microsoft.com/devcontainers/universal:2image tobase:ubuntuimage. It also makes following changes to ensure container is light, flexible and supportssetup.shinstallation :Changes strict requirement of 4-cores setup to flexible option for 2-cores or 4-cores setup.
Adds SSH feature.
Adds Conda ( since
base:ubuntudoesn't readily comes with Conda ).Updates conda environment path for
base:ubuntu.Explicitly invokes bash for onCreateCommand to avoid permission related issues.
This only consumes 8 GB space. I have tested this and it works fine.
Fixes #32374
AI Disclosure
No AI was used.
PR quality check