diff --git a/docker_foxy_desktop/Dockerfile b/docker_foxy_desktop/Dockerfile index 3c14918..fb08f71 100644 --- a/docker_foxy_desktop/Dockerfile +++ b/docker_foxy_desktop/Dockerfile @@ -134,6 +134,8 @@ RUN usermod -aG video $USERNAME # Add RMW_IMPLEMENTATION to .bashrc RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc +# Add the source of the project to the .bashrc +RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc # Clean up RUN rm -rf /var/lib/apt/lists/* diff --git a/docker_foxy_jetson/Dockerfile b/docker_foxy_jetson/Dockerfile index 24b9c66..139da7c 100644 --- a/docker_foxy_jetson/Dockerfile +++ b/docker_foxy_jetson/Dockerfile @@ -128,6 +128,8 @@ RUN usermod -aG video $USERNAME # Add RMW_IMPLEMENTATION to .bashrc RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc +# Add the source of the project to the .bashrc +RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc # Clean up RUN rm -rf /var/lib/apt/lists/* diff --git a/docker_humble_desktop/Dockerfile b/docker_humble_desktop/Dockerfile index 430ed5f..b8257e0 100644 --- a/docker_humble_desktop/Dockerfile +++ b/docker_humble_desktop/Dockerfile @@ -134,6 +134,8 @@ RUN usermod -aG video $USERNAME # Add RMW_IMPLEMENTATION to .bashrc RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc +# Add the source of the project to the .bashrc +RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc # Clean up RUN rm -rf /var/lib/apt/lists/* diff --git a/docker_humble_jetson/Dockerfile b/docker_humble_jetson/Dockerfile index 4524036..42d35a7 100644 --- a/docker_humble_jetson/Dockerfile +++ b/docker_humble_jetson/Dockerfile @@ -128,6 +128,8 @@ RUN usermod -aG video $USERNAME # Add RMW_IMPLEMENTATION to .bashrc RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc +# Add the source of the project to the .bashrc +RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc # Clean up RUN rm -rf /var/lib/apt/lists/*