I've been trying to set up an environment for running ROS2 inside a docker container. I was able to successfully get some basic ROS2 code running inside the container, however, I am unable to get code completion to work for anything other than python packages I install via the Dockerfile.
According to the ROS2 documentation for IDEs (http://wiki.ros.org/IDEs): A similar problem is solved in linux by launching PyCharm from a shell that has sourced the ROS2 source.bash (source /opt/ros/<distro>/setup.bash).
I would like to know if there is a way to have PyCharm use the docker shell environment for code completion or perhaps a way to source the source.bash file from the docker container? Any advice is appreciated.