This is a demonstration project for using devcontainers with a non-trivial project based on the Wagtail CMS.
📰 Read the post about this demo on my blog: Isolated python environments with devcontainers
To get started:
- Install docker
- Install Visual Studio Code and the devcontainer extension
- Checkout this repository:
git clone https://github.com/gregmuellegger/devcontainers-bakerydemo.git
- Open the folder with VS Code:
code ./devcontainers-bakerydemo
Once VS Code started, it will offer you to "Reopen in Container".
After building the images, you need to run the following commands for initial setup:
python manage.py migrate
python manage.py load_initial_data
Now you are ready to run the server. Either execute or python manage.py runserver
in the commandline, or press F5
to run the server from within VS Code's debugger.
For more details see the blog post.