This repo provides a dev container Features for ros2.
Running ros2 inside the built container will install ros2 inside of the container.
This package is licensed under the MIT license.
It used the template devcontainers feature starter as a starting template.
It uses installation instructions from ROS2
├── src
│ ├── ros2
│ │ ├── devcontainer-feature.json
│ │ └── install.sh
...
The dev container options are found in the documented dev container properties from the feature's devcontainer-feature.json file, and execute in the install.sh entrypoint script in the container during build time.
You can run the dev container locally using an implementing tool. Implementing tools are also free to process attributes under the customizations property as desired.
devcontainer features package -f srcYou can test the dev container locally
devcontainer features test --base-image ubuntu:22.04 .- test (autogenerated) Run test.sh over autogenerated feature with default options
- test (scenarios) Test all scenarios
- test (all) Test both
- package Package the feature
{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/devcontainers/vscode-ros2-features/ros2:latest": { "distro": "humble" } } }