From f6a228b9b165dec4c6f6ce3ab0c0dd5b81bc4759 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Mon, 22 Jul 2024 20:52:51 +0200 Subject: [PATCH] build packages up to Signed-off-by: Jakub Delicat --- Dockerfile.gazebo | 2 +- Dockerfile.hardware | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.gazebo b/Dockerfile.gazebo index 06991a5..8a10eaf 100644 --- a/Dockerfile.gazebo +++ b/Dockerfile.gazebo @@ -66,7 +66,7 @@ RUN apt-get update --fix-missing && apt-get install -y \ RUN MYDISTRO=${PREFIX:-ros}; MYDISTRO=${MYDISTRO//-/} && \ source /opt/$MYDISTRO/$ROS_DISTRO/setup.bash && \ - colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release && \ + colcon build --packages-up-to rosbot --cmake-args -DCMAKE_BUILD_TYPE=Release && \ rm -rf build log ## =========================== Final Stage =============================== diff --git a/Dockerfile.hardware b/Dockerfile.hardware index 794e844..fef9a1a 100644 --- a/Dockerfile.hardware +++ b/Dockerfile.hardware @@ -61,7 +61,7 @@ RUN git clone --depth 1 -b jazzy-devel https://github.com/husarion/rosbot_ros.gi rosdep install --from-paths src --ignore-src -y && \ MYDISTRO=${PREFIX:-ros}; MYDISTRO=${MYDISTRO//-/} && \ source /opt/$MYDISTRO/$ROS_DISTRO/setup.bash && \ - colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release && \ + colcon build --packages-up-to rosbot --cmake-args -DCMAKE_BUILD_TYPE=Release && \ echo $(cat /ros2_ws/src/rosbot/package.xml | grep '' | sed -r 's/.*([0-9]+.[0-9]+.[0-9]+)<\/version>/\1/g') >> /version.txt && \ rm -rf build log