chore: add initial devcontainer.json config#36
chore: add initial devcontainer.json config#36prometheas wants to merge 1 commit intoopenfoodfacts:mainfrom
Conversation
Using the version of Python 3 matching the version used in the root `Dockerfile` of the repo (3.9). The container also includes the `docker-outside-of-docker` dev container feature.
|
Hi @prometheas, can you explain it a bit to me ? Isn't the docker-compose sufficient ? If it adds some new capabilities, could you add a small explanation in the README ? |
|
And thanks a lot for this first PR @prometheas 🎉 |
| { | ||
| "name": "Python 3", | ||
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
| "image": "mcr.microsoft.com/devcontainers/python:0-3.9", |
There was a problem hiding this comment.
Why not use the Dockerfile instead ?
Hi, @alexgarel 👋 this PR adds a Dev Container file to the project, allowing developers to create a uniform development environment. This is notable different to the container used by Consistent versions of Python and any number of supporting cli tools become trivial, allowing newcomers to get started in minutes, rather than hours or days. Even allows for development directly in the web browser at GitHub Codespaces, or vscode.com. Good point about updating info in the |
|
@prometheas if you have time, it'd be great having a finalized devcontainer.json |
|
This PR is superseded by this: #336 cc: @alexgarel @teolemon |
What
devcontainer.jsonconfig file, enabling containerized development environment using Python 3.9 (the same version of Python used in the rootDockerfileof the repo), to create a development environment consistent with the deployment environment.Screenshot
N/A
Fixes bug(s)
N/A
Part of
N/A