From f6e9da46b67d3c4eff4055ffbf6567681f5bd6fc Mon Sep 17 00:00:00 2001 From: hmiranda-queiros Date: Sat, 31 Aug 2024 14:47:01 +0200 Subject: [PATCH] feat: add setup.bash source to all images --- docker_foxy_desktop/Dockerfile | 2 ++ docker_foxy_jetson/Dockerfile | 2 ++ docker_humble_desktop/Dockerfile | 2 ++ docker_humble_jetson/Dockerfile | 2 ++ 4 files changed, 8 insertions(+) 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/*