From 8b6ecd2ca44745b8964e3cbdba4b754c1e559685 Mon Sep 17 00:00:00 2001 From: Max Polzin Date: Tue, 28 Nov 2023 18:58:22 +0100 Subject: [PATCH] Update. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Dockerfile b/Dockerfile index b81b729..180e695 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,29 @@ ARG ROS_DISTRO=humble +FROM ros:${ROS_DISTRO}-ros-base AS builder + +WORKDIR /colcon_ws + +RUN git clone https://github.com/stereolabs/zed-ros2-interfaces.git src/zed_interfaces && \ + . /opt/ros/${ROS_DISTRO}/setup.sh && \ + colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --event-handlers console_direct+ + + + + FROM ros:${ROS_DISTRO}-ros-core RUN apt-get update && apt-get install -y --no-install-recommends \ ros-${ROS_DISTRO}-foxglove-bridge \ + ros-${ROS_DISTRO}-tf2-msgs \ + ros-${ROS_DISTRO}-rosapi-msgs \ + ros-${ROS_DISTRO}-geometry-msgs \ + ros-${ROS_DISTRO}-sensor-msgs \ + ros-${ROS_DISTRO}-rosbridge-msgs \ && rm -rf /var/lib/apt/lists/* +COPY --from=builder /colcon_ws/install/zed_interfaces /opt/ros/${ROS_DISTRO} + COPY ros_entrypoint.sh . RUN echo 'source /opt/ros/humble/setup.bash; ros2 launch foxglove_bridge foxglove_bridge_launch.xml' >> /run.sh && chmod +x /run.sh