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

Docker: Some source command isn't added to the bashrc when running install deps script #245

Open
francocipollone opened this issue Apr 7, 2022 · 0 comments

Comments

@francocipollone
Copy link
Collaborator

Context

tools/install_dependencies.sh script adds /opt/ros/$ROS_DISTRO/setup.bash to the bashrc file.

https://github.com/ToyotaResearchInstitute/maliput_infrastructure/blob/8592f325085dcf45cc477aa26671d393a05884f1/tools/install_dependencies.sh#L101-L107

This script is recommended to be executed as sudo given some updates and install commands.

Issue

This is working correctly when this script is executed in bionic however when using focal, the source line is being added to the /root/.bashrc instead to the /home/USER/.basrhc, which a priori makes sense given that the script is being executed as sudo. (But in bionic it was working correctly).

Note: Same thing with the lines that do export ROS_DISTRO=.....

Possible solution

Execute the script sudoless and add the sudo commands that are necessary within the script.
This change should impact also on the maliput documentation - Installation and Quickstart page.

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