docker: jammy humble dep fix

This commit is contained in:
matlabbe
2024-01-21 15:49:59 -08:00
parent 29dc6c67fa
commit b374c6cd8e

View File

@@ -2,6 +2,10 @@
FROM ubuntu:22.04
ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN echo "I am building for $TARGETPLATFORM"
# Install ROS2
RUN apt update && \
apt install software-properties-common -y && \
@@ -25,6 +29,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then apt-get update && \
apt-get install -y ros-humble-rtabmap-ros && \
apt-get remove -y ros-humble-rtabmap* && \
apt-get clean && rm -rf /var/lib/apt/lists/; fi
# current issue that ros-humble-rtabmap-ros is not available on arm64
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then apt-get update && \
apt upgrade -y && \
apt-get install -y ros-humble-rtabmap-launch && \
@@ -41,10 +47,6 @@ RUN apt-get update && apt-get install -y libpdal-dev && \
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}
RUN echo "I am building for $TARGETPLATFORM"
# 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 && \