You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It causes multiple issues, e.g. running ROS 2 daemon with rmw_fastrtps_cpp DDS.
Steps to reproduce
./docker/run.sh --devel
cat $HOME/.bashrc
sudo su
cat $HOME/.bashrc
Versions
No response
Possible causes
Command exec /usr/sbin/gosu "$USER_NAME" "$@" from docker/etc/ros_entrypoint.sh run bash as user with default .bashrc file. We can fix this two ways:
Handle /etc/skel/.bashrc in ansible scripts. That means push all environment variables to two .bashrc files at the same time. In that case we will need to change export PATH="$PATH:/root/.local/bin" to export PATH="$PATH:\$HOME/.local/bin". I'm not sure if \ will keep $ in scripts as a special sign here. It has to be validated.
Add variables to $HOME/.bashrc via ros_entrypoint.sh. Copying /root/.bashrc is also possible if we modify export PATH="$PATH:/root/.local/bin" as described previously.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Checklist
Description
After running development container, environment variables set via ansible script doesn't exist.
Expected behavior
All the environment variables set via ansible script are reflected for user while running Docker image with
--devel
flag.Actual behavior
/home/${USER}/.bashrc
doesn't contain environment variables. The missing variables are:It causes multiple issues, e.g. running ROS 2 daemon with
rmw_fastrtps_cpp
DDS.Steps to reproduce
Versions
No response
Possible causes
Command
exec /usr/sbin/gosu "$USER_NAME" "$@"
fromdocker/etc/ros_entrypoint.sh
run bash as user with default.bashrc
file. We can fix this two ways:/etc/skel/.bashrc
in ansible scripts. That means push all environment variables to two.bashrc
files at the same time. In that case we will need to changeexport PATH="$PATH:/root/.local/bin"
toexport PATH="$PATH:\$HOME/.local/bin"
. I'm not sure if\
will keep$
in scripts as a special sign here. It has to be validated.$HOME/.bashrc
viaros_entrypoint.sh
. Copying/root/.bashrc
is also possible if we modifyexport PATH="$PATH:/root/.local/bin"
as described previously.Additional context
No response
The text was updated successfully, but these errors were encountered: