-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (20 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ros:jazzy-ros-base AS zenoh-builder
SHELL ["/bin/bash", "-c"]
WORKDIR /ws_rmw_zenoh
RUN apt update && apt install -y \
cargo && \
git clone https://github.com/ros2/rmw_zenoh src/rmw_zenoh && \
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y && \
source /opt/ros/$ROS_DISTRO/setup.bash && \
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release && \
rm -rf build/ log/ src/
FROM ros:jazzy-ros-core
SHELL ["/bin/bash", "-c"]
COPY --from=zenoh-builder /ws_rmw_zenoh /ws_rmw_zenoh
COPY ros_entrypoint.sh /
RUN apt update && apt install -y \
ros-$ROS_DISTRO-demo-nodes-cpp && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "source \"/opt/ros/$ROS_DISTRO/setup.bash\"" >> /etc/bash.bashrc && \
echo "source \"ws_rmw_zenoh/install/setup.bash\"" >> /etc/bash.bashrc