Every project has to start from somewhere.
In this tutorial, we are going to see the minimal template to start any ROS 2 Humble projects with style and stability.
We're not just throwing code around, we will focus on how to keep your setup bulletproof.
For that goal we’re going to use GitHub Actions to automatically stress-test the Dockerfile and devcontainer.json files.
Basically, we’re making sure your dev environment is always "ready to roll" before you even type your first node!
Think of your Dockerfile as the DNA of your project.
It’s based on ros:humble-ros-base, but we’ve customized it to make it comfortable:
The devcontainer.json file is like a VIP pass for your IDE.
It takes your raw Docker image and turns it into a workstation:
To keep things from breaking, we’ve split our GitHub Actions into two high-fiving jobs:
This is the "raw" test.
We build the image and ask: "Hey, are you actually a ROS 2 image?
Is our user there?
Is the ROS 2 source line present?
If this fails, the party stops here.
This is the "real world" test.
We use the @devcontainers/cli to spin up the container exactly like VSCode would.
If the workspace isn't where it should be or if the user permissions are wonky, the CI screams "No!"
By splitting your tests between the image foundation and the container orchestration, you’re catching bugs before they even reach your keyboard.
This minimal template is your ticket to a stress-free ROS 2 journey.
Clone it, push it, and watch those green checkmarks light up.
Happy coding, you did it! ![]()
Add new comment