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

Merge branch '2-improbing-installation-of-dependencies' into 'main'

Resolve "Improbing installation of dependencies"

Closes #2

See merge request !2
parents 17f7e6a4 52339164
Branches
No related tags found
1 merge request!2Resolve "Improbing installation of dependencies"
......@@ -50,6 +50,17 @@ RUN apt-get update && \
wget \
xterm
# Install pip3 and packages
RUN apt-get install -y \
python3-pip \
&& pip3 install sqlite_utils \
&& pip3 install conan==1.59 \
&& pip3 install transforms3d \
&& conan config set general.revisions_enabled=1 \
&& conan profile new default --detect > /dev/null \
&& conan profile update settings.compiler=gcc default
# Install zsh if requested
RUN if [ "$EXT_SHELL" = "zsh" ]; \
then \
apt-get -y install zsh; \
......@@ -76,49 +87,6 @@ RUN sh -c "echo 'yaml https://git.code.tecnalia.com/tecnalia_robotics-public/git
# containerd.io \
# docker-compose-plugin
# Install python - python3 packages based on ubuntu version
RUN if [ "${ROS_DISTRO}" = "melodic" ]; \
then \
apt-get update && \
apt-get -y install \
ipython \
python-catkin-tools \
python-pip \
python-osrf-pycommon\
python-vcstool; \
else\
if [ "${ROS_DISTRO}" = "noetic" ]; \
then \
apt-get update && \
apt-get -y install \
ipython3 \
python-is-python3 \
python3-click \
python3-numpy \
python3-osrf-pycommon \
python3-vcstool \
python3-pip \
# clang
clangd liblldb-dev libllvm-ocaml-dev python3-clang; \
fi \
fi
# Install ROS 1 tools
RUN if [ "${ROS_DISTRO}" != "humble" ]; \
then \
apt-get update && \
apt-get -y install \
ros-${ROS_DISTRO}-catkin \
ros-${ROS_DISTRO}-plotjuggler \
ros-${ROS_DISTRO}-plotjuggler-ros \
ros-${ROS_DISTRO}-rosmon \
ros-${ROS_DISTRO}-rqt-controller-manager \
ros-${ROS_DISTRO}-rqt-joint-trajectory-controller; \
else \
apt-get update && \
apt-get -y install python3-colcon-common-extensions; \
fi
# Copy the requirements.txt file into the container
WORKDIR /tmp/dependencies/
COPY /ws_dependencies/* ./
......@@ -126,9 +94,18 @@ COPY /ws_dependencies/* ./
# Install the packages listed in ${ROS_DISTRO}_requirements.txt
RUN if [ -f "${ROS_DISTRO}_requirements.txt" ]; \
then \
# apt-get update && \
# grep -v '^#' ${ROS_DISTRO}_requirements.txt | xargs apt-get install -y && \
# apt-get clean;\
apt-get update && \
grep -v '^#' ${ROS_DISTRO}_requirements.txt | xargs apt-get install -y && \
apt-get clean;\
awk '/^# APT-GET PACKAGES/,/^# PIP PACKAGES/' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs apt-get install -y && \
apt-get clean; \
fi
# Install pip packages
RUN if [ -f "${ROS_DISTRO}_requirements.txt" ]; \
then \
awk '/^# PIP PACKAGES/,0' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs -n1 pip install ;\
fi
RUN rm -rf *
......@@ -149,29 +126,11 @@ RUN if [ -f "${ROS_DISTRO}_libs.txt" ]; \
grep -v '^#' ${ROS_DISTRO}_libs.txt | xargs dpkg -i ;\
fi
# Read the plugin list and copy the plugins to their destinations
RUN if [ -f "${ROS_DISTRO}_plugins.txt" ]; \
then \
while IFS= read -r line; \
do \
echo "Processing line: $line"; \
if [[ "$line" == \#* ]]; \
then \
echo "Skipping ${line}"; \
else \
plugin_name=$(echo "$line" | awk '{print $1}'); \
destination=$(echo "$line" | awk '{print $2}'); \
echo "Coping ${plugin_name} into ${destination}"; \
mkdir -p "$destination" && cp -r "$plugin_name" "$destination/"; \
fi; \
done < ${ROS_DISTRO}_plugins.txt ; \
fi
RUN rm -rf *
RUN apt-get --reinstall install -y libnotify-bin notify-osd
# Update this date to re-run the image final update
LABEL image.date=25-10-2023
LABEL image.date=31-10-2023
# Update final image
RUN apt-get update \
......
# Read the plugin list and copy the plugins to their destinations
# RUN if [ -f "${ROS_DISTRO}_plugins.txt" ]; \
# then \
# while IFS= read -r line; \
# do \
# echo "Processing line: $line"; \
# if [[ "$line" == \#* ]]; \
# then \
# echo "Skipping ${line}"; \
# else \
# plugin_name=$(echo "$line" | awk '{print $1}'); \
# destination=$(echo "$line" | awk '{print $2}'); \
# echo "Coping ${plugin_name} into ${destination}"; \
# mkdir -p "$destination" && cp -r "$plugin_name" "$destination/"; \
# fi; \
# done < ${ROS_DISTRO}_plugins.txt ; \
# fi
#
# list of files and destination folders
librealsense_gazebo_plugin.so /usr/lib/x86_64-linux-gnu/gazebo-11/plugins
# APT-GET PACKAGES
# Base
python3-colcon-common-extensions
# Nav2 fix
libunwind-dev
# Mairon
ros-humble-aws-robomaker-small-warehouse-world
ros-humble-joint-state-publisher
ros-humble-gazebo-ros
......@@ -39,4 +44,8 @@ ros-humble-moveit-setup-assistant
ros-humble-navigation2
ros-humble-slam-toolbox
ros-humble-moveit-core
ros-humble-gazebo-ros2-control
\ No newline at end of file
ros-humble-gazebo-ros2-control
ros-humble-tf-transformations
# PIP PACKAGES
transform3d
# EOF
\ No newline at end of file
# Base
ipython
python-catkin-tools
python-pip
python-osrf-pycommon
python-vcstool
ros-melodic-catkin
ros-melodic-plotjuggler
ros-melodic-plotjuggler-ros
ros-melodic-rosmon
ros-melodic-rqt-controller-manager
ros-melodic-rqt-joint-trajectory-controller
# EOF
# Base
python3-catkin-tools
ipython3
python-is-python3
python3-click
python3-numpy
python3-osrf-pycommon
python3-vcstool
python3-pip
clangd
liblldb-dev
libllvm-ocaml-dev
python3-clang
ros-noetic-catkin
ros-noetic-plotjuggler
ros-noetic-plotjuggler-ros
ros-noetic-rosmon
ros-noetic-rqt-controller-manager
ros-noetic-rqt-joint-trajectory-controller
# Neurondones
ros-noetic-libpcan
ros-noetic-moveit-ros-move-group
......@@ -15,6 +33,7 @@ ros-noetic-moveit-planners
ros-noetic-moveit-simple-controller-manager
ros-noetic-moveit-ros-control-interface
ros-noetic-moveit-msgs
ros-noetic-ros-control-boilerplate
# Smart3D
ros-noetic-moveit-ros-benchmarks
ros-noetic-warehouse-ros-mongo
......@@ -39,4 +58,7 @@ ros-noetic-twist-controller
lcov
iwyu
cppcheck
ros-noetic-rviz-visual-tools
\ No newline at end of file
ros-noetic-rviz-visual-tools
# ros control boilerplate
libgflags-dev
# EOF
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment