A project to test VS Code's local container dev setup. With a Python project.
-
Install Docker
-
In VS Code install the "Remote - Containers extension"
-
Launch VS Code
-
Then either:
-
If you have checked out this repo locally....
- Open the checked out folder in VS Code
- Click the green "><" box in lower left corner
- Select "Open Folder in Container"
-
If you haven't checked out this repo locally....
- Open VS Code
- Click the green "><" box in lower left corner
- Select "Clone Repository in Container Volume"
- Enter https://github.com/rabidgremlin/test-vscode-containder-dev-python as Github repo
-
-
Wait for initial dev container to download/build
- Open new terminal (this will open shell in your dev container)
- Run
export FLASK_APP=hello
flask run
- Browse to http://localhost:5000/
See https://code.visualstudio.com/docs/remote/containers-tutorial#_how-it-works
Also check out files in .devcontainer
to see the setup. These were creaed by VS Code using the "Remote-Containers: Add Development Container Configuration Files" option on the repo before it had a .devcontainer
folder.