Skip to content

Repository files navigation

Information on how to install, use and contribute is described in the documentation 📖.

Contributions are warmly welcome if you want to help improve this project, please read the contributions guide.

Devcontainer-tool

The devcontainer-tool is a extensible commandline tool (devc) to create Dockerfiles and devcontainer.json files. It enables you to create isolated, reproducible and sharable development environments based on Development Containers.

Installation

With pip in a venv:

python3 -m venv ~/.devc-venv && source ~/.devc-venv/bin/activate &&
pip install git+https://github.com/Rosiris-Open-Source/devcontainer-tool.git

ROS2 example

You need to have the ms-vscode-remote.remote-containers extension for Visual Studio Code installed

Creating an isolated development environment is as easy as:

mkdir my_ros2_ws && cd my_ros2_ws

Then create a Dockerfile:

devc dockerfile ros2-desktop-full

Create the devcontainer for your workspace

devc dev-json ros2-desktop-full --name "ros2_rolling_project" --nvidia --ssh=mount

After this you can open Visual Studio Code code . press F1 → Dev Containers: Reopen in Container and start coding!

NOTE: This can take a little bit the very first time because the Docker Image needs to be pulled. You can check the progress

About

Create development environments the easy way.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages