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

Add project dependencies

parent 349d4836
Branches main
No related tags found
No related merge requests found
File added
......@@ -65,7 +65,7 @@ RUN apt-get update && \
# Install zsh if requested
RUN if [ "$EXT_SHELL" = "zsh" ]; \
then \
apt-get -y install zsh; \
apt-get -y install zsh; \
fi
# Configure system to look for debian packages in the Tecnalia's artifactory repository
......@@ -83,14 +83,14 @@ COPY /distro_dependencies/* ./
# Install the packages listed in ${ROS_DISTRO}_requirements.txt
RUN if [ -f "${ROS_DISTRO}_requirements.txt" ]; \
then \
apt-get update && \
# Install apt-get packages
awk '/^# APT-GET PACKAGES/,/^# PIP PACKAGES/' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs apt-get install -y && \
# Install pip packages
# workaround for ROS jazzy
export PIP_BREAK_SYSTEM_PACKAGES=1 && \
awk '/^# PIP PACKAGES/,0' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs -r -n1 pip install -U ;\
apt-get clean; \
apt-get update && \
# Install apt-get packages
awk '/^# APT-GET PACKAGES/,/^# PIP PACKAGES/' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs apt-get install -y && \
# Install pip packages
# workaround for ROS jazzy
export PIP_BREAK_SYSTEM_PACKAGES=1 && \
awk '/^# PIP PACKAGES/,0' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs -r -n1 pip install -U ;\
apt-get clean; \
fi
# Install extra libs from .deb files
......@@ -100,10 +100,10 @@ COPY /extra_libs/* ./
# Install the packages listed in common_libs.txt
RUN if [ -f "common_libs.txt" ]; \
then \
# Download .deb files from common_libs.txt using wget
grep -v '^#' common_libs.txt | xargs wget \
# Install .deb files
&& dpkg -i *.deb; \
# Download .deb files from common_libs.txt using wget
grep -v '^#' common_libs.txt | xargs wget \
# Install .deb files
&& dpkg -i *.deb; \
fi
# Install notify-osd
......@@ -146,40 +146,40 @@ WORKDIR /tmp/dependencies/
COPY /ws_dependencies/* ./
RUN if [ "$PACKAGES" != "none" ]; \
then \
if [ -f "${PACKAGES}" ]; \
then \
# Install apt-get packages
apt-get update && \
awk '/^# APT-GET PACKAGES/,/^# PIP PACKAGES/' ${PACKAGES} | grep -v '^#' | xargs apt-get install -y && \
# Install pip packages
export PIP_BREAK_SYSTEM_PACKAGES=1 && \
awk '/^# PIP PACKAGES/,0' ${PACKAGES} | grep -v '^#' | xargs -r -n1 pip install -U ;\
apt-get clean; \
fi \
if [ -f "${PACKAGES}" ]; \
then \
# Install apt-get packages
apt-get update && \
awk '/^# APT-GET PACKAGES/,/^# PIP PACKAGES/' ${PACKAGES} | grep -v '^#' | xargs apt-get install -y && \
# Install pip packages
export PIP_BREAK_SYSTEM_PACKAGES=1 && \
awk '/^# PIP PACKAGES/,0' ${PACKAGES} | grep -v '^#' | xargs -r -n1 pip install -U ;\
apt-get clean; \
fi \
fi
# Install open3d from source workaround in jazzy
ARG OPEN3D=none
RUN if [ "$OPEN3D" = "install" ]; \
then \
PIP_BREAK_SYSTEM_PACKAGES=1 pip install -U -f https://www.open3d.org/docs/latest/getting_started.html --only-binary open3d open3d; \
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 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) \
&& 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'\
&& 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';\
apt-get update && apt-get install -y udev libpopt-dev linux-headers-$(uname -r) \
&& 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'\
&& 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';\
fi
RUN rm -rf *
......
......@@ -57,7 +57,6 @@ ros-jazzy-ur-moveit-config
ros-jazzy-ur-robot-driver
xdot
# PIP PACKAGES
open3d
pyads
sqlite-utils
torch
......
......@@ -39,6 +39,9 @@ ros-humble-controller-interface
ros-humble-controller-manager
ros-humble-generate-parameter-library
ros-humble-hardware-interface
# moveIT servo
ros-humble-moveit-servo
ros-humble-moveit-resources
# PIP PACKAGES
# transform3d
# EOF
\ No newline at end of file
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