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

Warning about missing rosdep update #15

Open
mabelzhang opened this issue Jan 20, 2022 · 0 comments
Open

Warning about missing rosdep update #15

mabelzhang opened this issue Jan 20, 2022 · 0 comments

Comments

@mabelzhang
Copy link
Contributor

mabelzhang commented Jan 20, 2022

This is more an inconvenience than a bug.

The current Dockerfile doesn't run rosdep update, so when you run something, you get a warning like this:

$ roslaunch dave_demo_launch dave_dvl_gradient_demo_dsl.launch
…
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

That has to be manually run in the container right now.

One fix is to add a line like this in the Dockerfile:

RUN rosdep init && rosdep update

or this (actually the rosdep init errors saying a file in /etc already exists, maybe because I'm building from cached instead of scratch):

RUN rosdep update

But that's not optimal, because building the image will then warn that you aren't supposed to run it as the root user

Warning: running 'rosdep update' as root is not recommended.
  You should run 'sudo rosdep fix-permissions' and invoke 'rosdep update' again without sudo.

We can't get around that in the Dockerfile, since the Dockerfile only has a root user, and the non-root user is established using rocker.

A few options:

  1. Do nothing, user will just have to run rosdep init && rosdep update manually in the container
  2. Add RUN rosdep init && rosdep update to the Dockerfile, which will run as root user. Ignore the warning.
  3. Add a non-root user to the Dockerfile and the RUN line above. This might conflict with the --user flag to rocker.
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

No branches or pull requests

1 participant