Skip to content
Snippets Groups Projects
Commit dcaae344 authored by Montaño Sarria, Andres Felipe's avatar Montaño Sarria, Andres Felipe
Browse files

Add dind option

parent 6cbdf4c8
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ RUN apt-get update && \
# Install zsh if requested
RUN if [ "$EXT_SHELL" = "zsh" ]; \
then \
apt-get -y install zsh; \
apt-get update && apt-get -y install zsh; \
fi
# Configure system to look for debian packages in the Tecnalia's artifactory repository
......@@ -167,22 +167,35 @@ RUN if [ "$OPEN3D" = "install" ]; \
PIP_BREAK_SYSTEM_PACKAGES=1 pip install -U -f https://www.open3d.org/docs/latest/getting_started.html --only-binary open3d open3d || true; \
fi
# Install docker in docker
ARG DOCKER_IN_DOCKER=none
RUN if [ "$DOCKER_IN_DOCKER" = "install" ]; \
then \
curl -fsSL https://get.docker.com -o get-docker.sh \
&& sh get-docker.sh \
&& rm get-docker.sh; \
fi
# Install Peak driver
ARG PEAK_DRIVER=none
RUN if [ "$PEAK_DRIVER" = "install" ]; \
then \
apt-get update && apt-get install -y udev libpopt-dev linux-headers-$(uname -r) \
apt-get update && apt-get install -y udev libpopt-dev linux-headers-$(uname -r) gcc-12\
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 200 \
&& wget https://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-8.18.0.tar.gz \
# && wget https://www.peak-system.com/quick/PEAK-Linux-Driver -O peak-linux-driver.tar.gz \
&& wget https://www.peak-system.com/quick/BasicLinux -O PCAN-Basic_Linux.tar.gz \
&& tar -xvf peak-linux-driver-8.18.0.tar.gz \
&& cd peak-linux-driver-8.18.0 \
&& make clean && make install || echo 'make failed but move forward'\
&& tar -xf peak-linux-driver-8.18.0.tar.gz \
&& cd peak-linux-driver-8.18.0; \
make clean && make && make install || echo 'make failed but move forward'\
&& cd .. \
&& tar -xvf PCAN-Basic_Linux.tar.gz \
&& cd PCAN-Basic_Linux-4.9.0.7/libpcanbasic \
&& make clean && make install || echo 'make failed but move forward';\
rm -rf /var/lib/apt/lists/*; \
&& tar -xf PCAN-Basic_Linux.tar.gz \
&& cd PCAN-Basic_Linux-4.10.0.4/libpcanbasic; \
make clean && make && make install || echo 'make failed but move forward'\
&& update-alternatives --set gcc /usr/bin/gcc-11 \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives/*.deb \
&& rm -rf *; \
fi
# Install conan for Kortex driver
......@@ -202,7 +215,7 @@ RUN if [ "$AZURE" = "install" ]; \
apt-get update && apt-get install -y wget curl libusb-1.0-0-dev udev \
# Install libsoundio1 dependency
&& wget http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsoundio/libsoundio1_1.1.0-1_amd64.deb \
dpkg -i libsoundio1_1.1.0-1_amd64.deb && \
&& dpkg -i libsoundio1_1.1.0-1_amd64.deb \
# Download and install Azure Kinect SDK packages
&& wget https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/libk/libk4a1.4/libk4a1.4_1.4.1_amd64.deb \
&& wget https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/libk/libk4a1.4-dev/libk4a1.4-dev_1.4.1_amd64.deb \
......@@ -214,10 +227,11 @@ RUN if [ "$AZURE" = "install" ]; \
&& echo 'libk4abt1.1 libk4abt1.1/accepted-eula-hash string 03a13b63730639eeb6626d24fd45cf25131ee8e8e0df3f1b63f552269b176e38' | debconf-set-selections \
&& dpkg -i libk4a1.4_1.4.1_amd64.deb \
&& dpkg -i libk4a1.4-dev_1.4.1_amd64.deb \
dpkg -i libk4abt1.1_1.1.2_amd64.deb && \
&& dpkg -i libk4abt1.1_1.1.2_amd64.deb \
&& dpkg -i libk4abt1.1-dev_1.1.2_amd64.deb \
&& dpkg -i k4a-tools_1.4.1_amd64.deb \
# Clean up
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives/*.deb \
&& rm -rf *; \
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment