Skip to content
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

Open
wants to merge 1 commit into
base: jazzy
Choose a base branch
from

Conversation

Z223I
Copy link

@Z223I Z223I commented Nov 29, 2024

Rosdep needs to be installed.

Rosdep needs to be installed.

Signed-off-by: Z223I <31394498+Z223I@users.noreply.github.com>
Copy link
Contributor

@clalancette clalancette left a 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?

Copy link
Collaborator

@fujitatomoya fujitatomoya left a 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 \
Copy link
Collaborator

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants