-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.CycloneDDS
24 lines (19 loc) · 877 Bytes
/
Dockerfile.CycloneDDS
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.CycloneDDS -t performance_test_cyclone_dds
# docker run -it performance_test_cyclone_dds bash
# /opt/performance_test/lib/performance_test/perf_test -c CycloneDDS --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_CYCLONEDDS_ENABLED=ON \
-DPERFORMANCE_TEST_RCLCPP_ENABLED=OFF
RUN echo "source /opt/ros/rolling/setup.bash" >> /root/.bashrc
RUN echo 'source /opt/performance_test/setup.bash' >> /root/.bashrc
RUN echo 'LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/cyclonedds/lib"' >> /root/.bashrc