Skip to content

Commit

Permalink
Merge pull request #497 from una-auxme/420-feature-execute-catkin_mak…
Browse files Browse the repository at this point in the history
…e-on-docker-compose-up

420 feature execute catkin make on docker compose up
  • Loading branch information
vinzenzm authored Nov 14, 2024
2 parents 92b0377 + a99235f commit b0be4de
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"richardkotze.git-mob",
"ms-vscode-remote.remote-containers",
"valentjn.vscode-ltex",
"ms-python.black-formatter"
"ms-python.black-formatter",
"augustocdias.tasks-shell-input"
]
}
22 changes: 22 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run 'catkin_make' in docker container. Choose container from list of running containers.",
"type": "shell",
"command": "docker exec -it ${input:container_name} bash -c 'cd ../../catkin_ws && source /opt/ros/noetic/setup.bash && bash devel/setup.bash && catkin_make'",
"problemMatcher": [],
"detail": "Executes 'catkin_make' selected container. Requires Tasks Shell Input Extension, in order to generate the list of containers.",
}
],
"inputs": [
{
"id": "container_name",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": "docker ps --format '{{.Names}}'",
}
}
]
}

0 comments on commit b0be4de

Please sign in to comment.