Skip to content

Different docker images, usable for dev-container setups.

Notifications You must be signed in to change notification settings

RobinHeitz/ros2-docker-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker images to use with ros2 humble + VSCodes devcontainers

Pull images:

ghcr.io/robinheitz/ros:<tag>

Available tags:

  • melodic
  • noetic
  • humble

Setup

In your project folder:

mkdir -p ros_ws/src
mkdir .devcontainer

Copy the content into .devcontainer/devcontainer.json:

{
    "name": "ROS 2 Development Container",
    "privileged": true,
    "remoteUser": "ros",
    "containerUser": "ros",
    "image":"ghcr.io/robinheitz/ros:<tag>",
    "workspaceFolder": "/home/ros/ros_ws",
    "workspaceMount": "source=${localWorkspaceFolder}/ros_ws/src,target=/home/ros/ros_ws/src,type=bind",
    "containerEnv": {
        "DISPLAY": "unix:0",
        "ROS_LOCALHOST_ONLY": "1",
        "ROS_DOMAIN_ID": "42"
    },
    "runArgs": [
        "--net=host",
        "-e", "DISPLAY=${env:DISPLAY}",
        "--name","ros_container"
    ]
}

Make sure to select the needed tag, marked by <tag>.

Start container

If vscode doesn't asks for it, CTRL+SHIFT+P, type devcontainer and select Open Folder in Container.

About

Different docker images, usable for dev-container setups.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages