Skip to content

Commit 34766a0

Browse files
Add additional dependencies to docker images (#655)
1 parent 959b504 commit 34766a0

3 files changed

Lines changed: 37 additions & 5 deletions

File tree

ros2_rhel/Dockerfile.rhel8

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,20 @@ RUN set -eux; \
2929

3030
# install ros
3131
ENV ROS_DISTRO=${ROS_DISTRO}
32-
RUN dnf install -y ros-${ROS_DISTRO}-ros-base \
33-
python3-rosdep \
32+
RUN dnf install -y \
33+
ros-${ROS_DISTRO}-ros-base \
34+
ros-${ROS_DISTRO}-backward-ros \
35+
ros-${ROS_DISTRO}-pal-statistics \
36+
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
37+
ros-${ROS_DISTRO}-xacro \
38+
boost-devel \
39+
libcap-devel \
40+
urdfdom \
41+
urdfdom-devel \
3442
python3-colcon-common-extensions \
43+
python3-rosdep \
3544
python3-rosinstall_generator \
45+
python3-rospkg \
3646
&& dnf clean all \
3747
&& rosdep init
3848
# somehow a wrong version of empy is installed, so we have to uninstall it first

ros2_rhel/Dockerfile.rhel9

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ RUN set -eux; \
2020
echo "Installing ROS RPM: $ROS_RPM_URL" ; \
2121
dnf install -y "$ROS_RPM_URL"
2222

23-
# install ros
23+
# install system dependencies
2424
RUN dnf makecache -y
2525
RUN dnf install -y \
2626
gcc-c++ \
2727
git \
2828
make \
2929
patch \
30+
boost-devel \
31+
libcap-devel \
32+
urdfdom \
33+
urdfdom-devel \
3034
python3-colcon-common-extensions \
3135
python3-mypy \
3236
python3-pip \
@@ -36,6 +40,7 @@ RUN dnf install -y \
3640
python3-pytest-rerunfailures \
3741
python3-rosdep \
3842
python3-rosinstall_generator \
43+
python3-rospkg \
3944
python3-setuptools \
4045
python3-vcstool \
4146
wget \
@@ -54,7 +59,13 @@ RUN python3 -m pip install --no-cache-dir -U --user \
5459

5560
# install ros-base
5661
ENV ROS_DISTRO=${ROS_DISTRO}
57-
RUN dnf install -y ros-${ROS_DISTRO}-ros-base \
62+
RUN dnf install -y \
63+
ros-${ROS_DISTRO}-ros-base \
64+
ros-${ROS_DISTRO}-backward-ros \
65+
ros-${ROS_DISTRO}-pal-statistics \
66+
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
67+
ros-${ROS_DISTRO}-sdformat-urdf \
68+
ros-${ROS_DISTRO}-xacro \
5869
&& rosdep init \
5970
&& dnf clean all
6071

ros2_ubuntu/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,22 @@ ENV LANG=C.UTF-8
5959
ENV LC_ALL=C.UTF-8
6060
ENV ROS_DISTRO=${ROS_DISTRO}
6161

62-
# Install ROS packages and dev dependencies, which ros-tooling/setup-ros would install see
62+
# Install ROS packages, (ros-base) plus common packages,
63+
# https://www.ros.org/reps/rep-2001.html#id38
64+
# typical manual dev dependencies,
65+
# and dependencies which ros-tooling/setup-ros would install see
6366
# https://github.com/ros-tooling/setup-ros/blob/master/src/package_manager/apt.ts
6467
RUN apt-get update && apt-get install -y --no-install-recommends \
6568
ros-${ROS_DISTRO}-ros-base \
69+
libboost-dev \
70+
libcap-dev \
71+
liburdfdom-tools \
72+
python3-rospkg \
73+
ros-${ROS_DISTRO}-backward-ros \
74+
ros-${ROS_DISTRO}-pal-statistics \
6675
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
76+
ros-${ROS_DISTRO}-sdformat-urdf \
77+
ros-${ROS_DISTRO}-xacro \
6778
$(if [ $(lsb_release -sc) = "noble" ]; then echo "libssl-dev python3-dev clang lcov python3-rosinstall-generator python3-pip python3-pytest-cov python3-flake8-blind-except python3-flake8-class-newline python3-flake8-deprecated python3-pytest-repeat python3-pytest-rerunfailures ros-dev-tools python3-colcon-coveragepy-result python3-colcon-lcov-result python3-colcon-meson python3-colcon-mixin python3-importlib-metadata libclang-rt-dev"; fi) \
6879
$(if [ $(lsb_release -sc) = "jammy" ]; then echo "libssl-dev python3-dev clang lcov python3-rosinstall-generator python3-flake8-docstrings python3-pip python3-pytest-cov python3-flake8-blind-except python3-flake8-builtins python3-flake8-class-newline python3-flake8-comprehensions python3-flake8-deprecated python3-flake8-import-order python3-flake8-quotes python3-pytest-repeat python3-pytest-rerunfailures ros-dev-tools python3-colcon-coveragepy-result python3-colcon-lcov-result python3-colcon-meson python3-colcon-mixin libasio-dev libtinyxml2-dev"; fi) \
6980
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)