- Install Docker and Remote Explorer Extension pack for VS Code.
- Configure Github credentials for:
- [Cloning Repos] Create a file named "credentials" in .devcontainer directory. In this file put your Github Username and Token using the following format:
USER=<your-github-username> TOKEN=<your-github-token>
- [Pushing/Pulling Repos] Follow the OS-specific instructions found at this link.
- [Cloning Repos] Create a file named "credentials" in .devcontainer directory. In this file put your Github Username and Token using the following format:
- Open the folder in VSCode using the docker extension.
Note: it is important to follow these steps closely to avoid messing up someone else's environment
- First make sure you're on a personal git branch, then save a backup of the current environment information:
cp environment.yml environment_old.yml
- Assuming the dependencies you'd like to add to the docker container's environment files are already installed in your running instance of the container, you can simply export your environment using
conda env export > environment.yml
- After you stage the changes to environment.yml, carefully examine the diff using a gui-based git tool to verify that the added/changed dependencies are consistent with what you're trying to do. Pay particular attention to upgraded or downgraded dependencies.
- (Optionally) rebuild the container to test whether the dependencies play nicely together.
Windows runs Docker on top of Windows Subsystem for Linux (WSL), which is a bit greedy when it comes to memory use. For that reason it is strongly recommended that Windows users limit the memory use of WSL. See this link for details.