Files
rtabmap/docker/jammy/Dockerfile
T

25 lines
698 B
Docker
Raw Normal View History

2023-01-22 16:14:39 -08:00
# Image: introlab3it/rtabmap:jammy
FROM introlab3it/rtabmap:jammy-deps
# Will be used to read/store databases on host
RUN mkdir -p /root/Documents/RTAB-Map && chmod 777 /root/Documents/RTAB-Map
2023-01-22 16:14:39 -08:00
# Copy current source code
COPY . /root/rtabmap
ARG RUN_TESTS=0
2023-01-22 16:14:39 -08:00
# Build RTAB-Map project
RUN source /ros_entrypoint.sh && \
cd rtabmap/build && \
cmake -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \
make -j4 && \
# ldconfig first: source-installed deps (GTSAM) are not yet in the loader cache.
if [ "$RUN_TESTS" = "1" ]; then ldconfig && ctest --output-on-failure -LE "long|performance"; fi && \
2023-01-22 16:14:39 -08:00
make install && \
cd ../.. && \
rm -rf rtabmap && \
ldconfig