VScode dev container work

This commit is contained in:
Alex Davies 2024-09-13 11:03:10 -03:00
parent 0692568e5b
commit dac7602363
3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,17 @@
{
"name": "ros1-catkit-devcontainer",
"dockerFile": "../Dockerfile",
"customizations": {
"vscode": {
"extensions": [
// List of extensions to install in the dev container
],
"settings": {
// Additional settings for the dev container
}
}
},
"forwardPorts": [
],
"postCreateCommand": "/bin/bash -c 'source /opt/ros/noetic/setup.bash && catkin_make install'"
}

12
src/.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Update templates ",
"type": "shell",
"command": "find .copier/ -type f -exec copier update --skip-answered -a {} \\;"
}
]
}

View File

@ -11,7 +11,7 @@ RUN apt-get install --yes python3-rosdep python3-rosinstall python3-rosinstall-g
WORKDIR /root/catkin_ws/src
{% if SOURCE.startswith("git+") %}
RUN git clone https://github.com/ros-drivers/video_stream_opencv.git
RUN git clone {{source}}
{% elif source %}
COPY {{SOURCE}} .
{% endif %}