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

@@ -5,23 +5,28 @@ FROM osrf/ros:foxy-desktop
# Install build dependencies
RUN apt-get update && \
apt-get install -y git software-properties-common ros-foxy-rtabmap-ros && \
apt-get remove -y ros-foxy-rtabmap
apt-get remove -y ros-foxy-rtabmap && \
apt-get clean && rm -rf /var/lib/apt/lists/
WORKDIR /root/
# GTSAM
RUN add-apt-repository ppa:borglab/gtsam-release-4.0 -y
RUN apt-get update && apt install libgtsam-dev libgtsam-unstable-dev -y
RUN apt-get update && apt install libgtsam-dev libgtsam-unstable-dev -y && \
apt-get clean && rm -rf /var/lib/apt/lists/
# MRPT
RUN add-apt-repository ppa:joseluisblancoc/mrpt-stable -y
RUN apt-get update && apt install libmrpt-poses-dev -y
RUN apt-get update && apt install libmrpt-poses-dev -y && \
apt-get clean && rm -rf /var/lib/apt/lists/
# 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-foxy-librealsense2
RUN apt-get update && apt-get install -y ros-foxy-librealsense2 && \
apt-get clean && rm -rf /var/lib/apt/lists/
ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
@@ -53,11 +58,13 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing k4a..." && \
dpkg -i /tmp/libk4abt1.0-dev_1.0.0_amd64.deb && \
apt-get install -y libsoundio1 && \
dpkg -i /tmp/k4a-tools_1.3.0_amd64.deb && \
rm /tmp/libk4a* /tmp/k4a*; fi
rm /tmp/libk4a* /tmp/k4a* && \
apt-get clean && rm -rf /var/lib/apt/lists/; fi
# 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 && \
@@ -71,6 +78,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 && \
@@ -88,7 +96,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing AliceVision.
libceres-dev \
xorg-dev \
libglu1-mesa-dev \
wget; fi
wget && apt-get clean && rm -rf /var/lib/apt/lists/; fi
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then git clone https://github.com/OpenImageIO/oiio.git && \
cd oiio && \
git checkout Release-2.0.12 && \
@@ -135,7 +143,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then git clone https://github.com/
rm -r AliceVision; 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 && \