docker: added foxy-latest

This commit is contained in:
matlabbe
2023-01-22 16:57:14 -08:00
parent 5f8701d3b2
commit 3ea6e1dfd6
4 changed files with 30 additions and 18 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM introlab3it/rtabmap:focal-foxy
RUN source /ros_entrypoint.sh && \
mkdir -p ros2_ws/src && \
cd ros2_ws/src
COPY . ros2_ws/src/rtabmap_ros
RUN source /ros_entrypoint.sh && \
cd ros2_ws && \
export MAKEFLAGS="-j$(nproc)" && \
colcon build --event-handlers console_direct+ --install-base /opt/ros/foxy --merge-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DCMAKE_BUILD_TYPE=Release && \
cd && \
rm -rf ros2_ws
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
docker build --build-arg CACHE_DATE="$(date)" --cache-from $IMAGE_NAME -f $DOCKERFILE_PATH -t $IMAGE_NAME -t $DOCKER_REPO:foxy-latest .