-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Setup-ROS-2-with-VSCode-and-Docker-Container.rst #4880
base: jazzy
Are you sure you want to change the base?
Conversation
Rosdep needs to be installed. Signed-off-by: Z223I <31394498+Z223I@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this guide doesn't actually require rosdep. However, I can definitely see that this would be much more convenient. I'm fine with this; @fujitatomoya what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
besides comments inline, this targets to jazzy
though.
@@ -182,6 +182,8 @@ Open the Dockerfile and add the following contents: | |||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | |||
&& chmod 0440 /etc/sudoers.d/$USERNAME | |||
RUN apt-get update && apt-get upgrade -y | |||
RUN apt-get update && apt-get install -y python3-rosdep \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need to install python3-rosdep
again? base image already has that.
@@ -182,6 +182,8 @@ Open the Dockerfile and add the following contents: | |||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | |||
&& chmod 0440 /etc/sudoers.d/$USERNAME | |||
RUN apt-get update && apt-get upgrade -y | |||
RUN apt-get update && apt-get install -y python3-rosdep \ | |||
&& rosdep init && rosdep update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i believe we should not do this in container image creation, because this generates the dependency how to bind the file system to the development environment. that is why we have done this in devcontainer.json
in postCreateCommand
.
Rosdep needs to be installed.