docker: added "make -j12" for rtabmap build

This commit is contained in:
matlabbe
2021-10-16 18:14:24 -04:00
parent e245782c6c
commit 56c5622d20
2 changed files with 8 additions and 8 deletions

View File

@@ -102,17 +102,17 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then git clone https://github.com/
cd && \ cd && \
rm -r AliceVision; fi rm -r AliceVision; fi
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Clone source code # Clone source code
ARG CACHE_DATE=2016-01-01 ARG CACHE_DATE=2016-01-01
RUN git clone https://github.com/introlab/rtabmap.git
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Build RTAB-Map project # Build RTAB-Map project
RUN source /ros_entrypoint.sh && \ RUN source /ros_entrypoint.sh && \
git clone https://github.com/introlab/rtabmap.git && \
cd rtabmap/build && \ cd rtabmap/build && \
~/cmake -DWITH_ALICE_VISION=ON .. && \ ~/cmake -DWITH_ALICE_VISION=ON .. && \
make -j2 && \ make -j$(nproc) && \
make install && \ make install && \
cd ../.. && \ cd ../.. && \
rm -rf rtabmap && \ rm -rf rtabmap && \

View File

@@ -153,17 +153,17 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then git clone https://github.com/
cd && \ cd && \
rm -r AliceVision; fi rm -r AliceVision; fi
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Clone source code # Clone source code
ARG CACHE_DATE=2016-01-01 ARG CACHE_DATE=2016-01-01
RUN git clone https://github.com/introlab/rtabmap.git
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Build RTAB-Map project # Build RTAB-Map project
RUN source /ros_entrypoint.sh && \ RUN source /ros_entrypoint.sh && \
git clone https://github.com/introlab/rtabmap.git && \
cd rtabmap/build && \ cd rtabmap/build && \
cmake -DWITH_ALICE_VISION=ON .. && \ cmake -DWITH_ALICE_VISION=ON .. && \
make -j2 && \ make -j$(nproc) && \
make install && \ make install && \
cd ../.. && \ cd ../.. && \
rm -rf rtabmap && \ rm -rf rtabmap && \