Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "ROS2 Foxy",
"build": {
"dockerfile": "../Dockerfile",
"context": ".."
},
"workspaceFolder": "/workspace",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
}
}
},
"runArgs": [
"--network=host",
"--cap-add=SYS_PTRACE",
"--security-opt=seccomp=unconfined"
],
"postCreateCommand": "bash -c 'source /opt/ros/foxy/setup.bash && echo \"source /opt/ros/foxy/setup.bash\" >> ~/.bashrc'",
"remoteUser": "root"
}
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Dockerfile for devcontainer of this repo

FROM ros:foxy

RUN apt update && apt install -y wget nano

RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN sudo dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
RUN sudo apt update && sudo apt install -y dotnet-sdk-6.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ colcon build --merge-install

Linux
-----
Assuming ROS2 foxy installed to the standard location, run the following commands:
Assuming ROS2 foxy installed to the standard location (or use the provided devcontainer config), run the following commands:
```
source /opt/ros/foxy/setup.bash
mkdir -p ~/ros2_dotnet_ws/src
Expand Down