-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile.OpenDDS
30 lines (24 loc) · 1.02 KB
/
Dockerfile.OpenDDS
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
29
30
# docker build . -f dockerfiles/Dockerfile.OpenDDS -t performance_test_open_dds
# docker run -it performance_test_open_dds bash
# /opt/performance_test/lib/performance_test/perf_test -c OpenDDS --msg Array1k
FROM osrf/ros:rolling-desktop
SHELL ["/bin/bash", "-c"]
RUN git clone https://github.com/objectcomputing/OpenDDS.git -b DDS-3.13.2 --depth 1 && \
cd OpenDDS && \
./configure --no-debug --optimize --no-tests --prefix=/opt/opendds && \
make -j$(nproc) && \
make install
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 \
-DCMAKE_CXX_FLAGS="-w" \
-DPERFORMANCE_TEST_OPENDDS_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