Jeroen Overschie - How to create a Devcontainer for your Python project 🐳
HTML-код
- Опубликовано: 10 сен 2024
- Devcontainers are an open-source specification, which allow you to connect your IDE to a running Docker container and develop right inside it. This has numerous advantages. Because the dev environment is now formally defined, it is reproducible. This means others can easily reproduce your dev environment, too! This makes it much easier for others to join in on your project, and stay updated with changes to the environment.
In this talk, you will learn: why you might want to use a Devcontainer for your project (or when not 😉), what exactly a Devcontainer is, and how you can build one for your Python project 🐍.
Devcontainers have been gaining traction lately. Whereas previously the technology existed only in the umbrella of Visual Studio Code, it is now released as an open specification. Such, multiple IDE's could all use the same standard specification, promoting reusability and standardisation. That said, Developers are currently hard at work at pushing the technology to become standardised. Especially for these reasons, this is an exciting time to take a closer look at this new specification, and at what the technology can do for us in general.
So how will I go about this talk? Let's take a look 🙌🏻.
📝 Talk setup
Let's learn about Devcontainers together. This will be the setup of my talk:
Why Devcontainers? What problem do they aim to solve? Pro's & Con's.
Building a basic Devcontainer from scratch
Opening up the Devcontainer
Extending the Devcontainer with more useful features
Custom VSCode settings
Running your CI task in the Devcontainer
Connecting as a non-root user
Opening up a port to the Devcontainer
Going further 🔮
More useful links & resources
Concluding ✓
🏡 What you will take home
At the end of the talk, you will be taking home the following:
- When it makes sense to create one
- How you can create one
- Knowledge on how Devcontainers work
- A template repo for a Python project Devcontainer
This is pure gold. Thanks a lot for this talk!
Excellent! I've been trying to figure out the details of Codespaces for a week, but Microsoft does too much hand-waving. Finally, someone who gives the specfics.
Does pycharm support dev containers ?
Setup was a bit too unnecessarily long winded. Wasted like five minutes of information time on the setup. Too bad. Otherwise brilliant.