Is ROS already sourced if I do it from a dockerfile?
I am currently building a dockerfile based on ROS. So far it is going great. However I have a doubt.
In a native installation I have to source $ROS_DISTRO/setup.bash every time I open a terminal. It is advised to put the line into the bashrc so that it gets executed automatically every time I open a terminal.
I wanted to do something similar for the dockerfile so I put a shell script and try to execute it (source the bash) every time I join the container.
However I found later that once I build the ROS container, it has s file called ros_entrypoint.sh
that has the line source "opt/ros/$ROS_DISTRO/setup.bash"
. Furthermore once I run the container, I can call roscore
so that means that ros_entrypoint.sh
got executed already
Is this correct? What for is this ros_entrypoint.sh
script?