docker cleanup

This commit is contained in:
matlabbe
2023-02-04 17:41:07 -08:00
parent 413be8e824
commit 5fd0448924
4 changed files with 56 additions and 28 deletions

View File

@@ -4,16 +4,19 @@ FROM osrf/ros:humble-desktop
# Install build dependencies
RUN apt-get update && \
apt-get install -y git software-properties-common ros-humble-rtabmap-ros libmrpt-poses-dev && \
apt-get remove -y ros-humble-rtabmap
apt-get install -y git software-properties-common ros-humble-rtabmap-ros && \
apt-get remove -y ros-humble-rtabmap && \
apt-get clean && rm -rf /var/lib/apt/lists/
WORKDIR /root/
# PDAL
RUN apt-get install -y libpdal-dev
RUN apt-get update && apt-get install -y libpdal-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/
# RealSense2
RUN apt-get install -y ros-humble-librealsense2
RUN apt-get update && apt-get install -y ros-humble-librealsense2 && \
apt-get clean && rm -rf /var/lib/apt/lists/
ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
@@ -24,6 +27,7 @@ ENV DEBIAN_FRONTEND=noninteractive
# libfreenect2
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing libfreenect2..." && \
apt-get update && apt-get install -y mesa-utils xserver-xorg-video-all libusb-1.0-0-dev libturbojpeg0-dev libglfw3-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/ && \
git clone https://github.com/OpenKinect/libfreenect2 && \
cd libfreenect2 && \
mkdir build && \
@@ -37,6 +41,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing libfreenect2
# zed open capture
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing zed-open-capture..." && \
apt-get update && apt install libusb-1.0-0-dev libhidapi-libusb0 libhidapi-dev wget && \
apt-get clean && rm -rf /var/lib/apt/lists/ && \
git clone https://github.com/stereolabs/zed-open-capture.git && \
cd zed-open-capture && \
mkdir build && \
@@ -48,7 +53,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing zed-open-cap
rm -r zed-open-capture; fi
#commit Aug 6 2020
RUN apt-get update && apt install wget
RUN apt-get update && apt install wget && \
apt-get clean && rm -rf /var/lib/apt/lists/
RUN git clone https://github.com/laurentkneip/opengv.git && \
cd opengv && \
git checkout 91f4b19c73450833a40e463ad3648aae80b3a7f3 && \