Using the Minerva DevContainer is the recommended way to develop with Minerva. It provides a consistent development environment for all developers and ensures that all dependencies are installed and configured correctly.
- If you intent to use GPU resources, first ensure you have NVIDIA drivers installed on your system. Check if
nvidia-smiworks to verify your GPU setup. - Install NVIDIA Container Toolkit to enable GPU support in Docker.
- After installing the toolkit, restart Docker. Then, test if GPU support is enabled by running
docker run --rm --runtime=nvidia --gpus all nvidia/cuda:11.6.2-base-ubuntu20.04 nvidia-smiIf you see the output of nvidia-smi, you have successfully enabled GPU support in Docker.
- Clone the Minerva repository
git clone https://github.com/discovery-unicamp/Minerva-Dev.git-
Open VSCode and open the cloned repository folder (Minerva-Dev) as your workspace.
-
Once the workspace is open, use the command Palette (
Ctrl+Shift+P, in Linux orCmd+Shift+P, in macOS) and selectDev Container: Rebuild and Reopen in Container. -
The DevContainer will start building. This may take a few minutes the first time you run it. Next time you open the workspace, it will be much faster.
-
Every time the container is build the
post_start.shscript will be executed. This script will install the project dependencies and configure the environment. -
After the container is built, you will be inside the container. You can now start developing with Minerva.