From 10ac27080b56d449168e53500f4e6e4e3455f563 Mon Sep 17 00:00:00 2001 From: jyjblrd Date: Thu, 2 May 2024 17:33:55 +0100 Subject: [PATCH] update docker --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ecf670d..e3df3ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM ros:humble +SHELL ["/bin/bash", "-c"] # FROM dustynv/ros:humble-pytorch-l4t-r35.3.1 # when using pytorch (image is larger though) @@ -10,7 +11,7 @@ RUN apt-get update && apt-get install -y git vim #WORKDIR /opt/root_ws -#RUN . /opt/ros/humble/install/setup.sh && colcon build --symlink-install --packages-select robomaster_msgs freyja_msgs state_manager lqg_control robomaster_handler sensing_msgs control waypoint_manager +#RUN source /opt/ros/humble/install/setup.sh && colcon build --symlink-install --packages-select robomaster_msgs freyja_msgs state_manager lqg_control robomaster_handler sensing_msgs control waypoint_manager #COPY cyclone_dds_profile.xml /opt/robomaster @@ -34,7 +35,7 @@ RUN sudo apt install -y ros-humble-interactive-markers # Build part II project RUN apt-get update && yes | apt-get install libboost-all-dev RUN cd /opt/root_ws \ - && . /opt/ros/humble/install/setup.sh \ + && source /opt/ros/humble/setup.bash \ && git clone https://github.com/jyjblrd/part_II_project \ && cd part_II_project \ && git config --global --add safe.directory /opt/root_ws/part_II_project \