-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.rclcpp
24 lines (19 loc) · 947 Bytes
/
Dockerfile.rclcpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# docker build . -f dockerfiles/Dockerfile.rclcpp -t performance_test_rclcpp
# docker run -it performance_test_rclcpp bash
# /opt/performance_test/lib/performance_test/perf_test -c rclcpp-single-threaded-executor --msg Array1k
# /opt/performance_test/lib/performance_test/perf_test -c rclcpp-static-single-threaded-executor --msg Array1k
# /opt/performance_test/lib/performance_test/perf_test -c rclcpp-waitset --msg Array1k
FROM osrf/ros:rolling-desktop
SHELL ["/bin/bash", "-c"]
ADD . /perf_test_ws/src/performance_test
RUN source /opt/ros/rolling/setup.bash && \
cd /perf_test_ws && \
colcon build \
--install-base /opt/performance_test \
--merge-install \
--cmake-clean-cache \
--cmake-args \
-DCMAKE_BUILD_TYPE=Release \
-DPERFORMANCE_TEST_RCLCPP_ENABLED=ON
RUN echo "source /opt/ros/rolling/setup.bash" >> /root/.bashrc
RUN echo "source /opt/performance_test/setup.bash" >> /root/.bashrc