Skip to content

Adding a devcontainer #21

@tenghamn

Description

@tenghamn

Hi!

Have you considered using a devcontainer (development container) for this project?

A devcontainer is a way to package up the entire development environment inside a Docker container, so that everyone working on the project has the exact same setup. It's relatively simple to setup, one creates a folder called .devcontainer and adds a configuration file into it called devcontainer.json.

Examples of this can be found in the numpy, scipy and matplotlib repo:
https://github.com/matplotlib/matplotlib/blob/main/.devcontainer/devcontainer.json
https://github.com/numpy/numpy/blob/main/.devcontainer/devcontainer.json
https://github.com/scipy/scipy/blob/main/.devcontainer/devcontainer.json

How to use: In vs code when the extension dev containers is installed it automatically discovers the devcontainer folder and prompts the user to open the code inside the devcontainer:

Image

When clicking reopen in container, the container gets built and the code folder is mounted into it, allowing one to develop the code inside the container where all the dependencies are already installed.

/Johan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions