Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpolzin committed Nov 28, 2023
1 parent 3823d7e commit 8b6ecd2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8b6ecd2

Please sign in to comment.