Development Container⚓︎
This project can be configured to be developed in a Docker container. This allows for a consistent development environment to be used across different machines and operating systems.
- Install the Remote - Containers extension (
ms-vscode-remote.remote-containers
) - Open this project as a folder
- A prompt should appear to open it in a container. Ensure Docker is installed and running so the container can be built.
The devcontainer encompasses the following:
- Building the Docker container that contains a recent Python image
- Installing the project dependencies
- Installing VS Code workspace extensions
- Applying custom settings to aforementioned extensions
- Under the interpreters tab on the bottom row, hit Add New Interpreter -> On Docker...
- If the Docker server is blank, in the dropdown menu click Create new... -> Ok
- Select the correct Dockerfile
- Set the Context folder to
.
- Uncheck the box Rebuild image automatically every time before running code
- Optionally, add an image tag to identify it later
- Hit Next and let the container build
- On the final page, the default interpreter should be sufficient