Pydog provides a minimal example of how to use Docker with Python in Visual Studio Code. Docker is a popular platform for creating, deploying, and running applications using containerization. Visual Studio Code is a powerful and widely used integrated development environment (IDE) that supports Docker integration.
Before getting started, ensure that you have the following prerequisites installed on your system:
- Install Docker Desktop on your system.
- Install Visual Studio Code on your system.
- Install the following Visual Studio Code Extensions
- Docker (ms-azuretools.vscode-docker)
- Dev Container (ms-vscode-remote.remote-containers)
- Clone this repository to your local machine using the following command:
git clone git@github.com:flojmn/pydog.git
- Open Visual Studio Code and navigate to the "pydog" folder.
- Press Ctrl + Shift + P to open the command palette, and select "pydog: Rebuild and Reopen in Container".
- Start coding! Add additional packages to the requirements.txt file.
- To stop the pydog container, use the command "pydog: Stop Container" in the command palette.