Skip to content

Commit c35d580

Browse files
Fix dockerfiles
1 parent 5401ad1 commit c35d580

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

ros2_rhel/Dockerfile.rhel8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN dnf install \
1919

2020
# Setup Sources
2121
RUN export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') && \
22-
dnf install "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-release-${ROS_APT_SOURCE_VERSION}-1.noarch.rpm"
22+
dnf install -y "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-release-${ROS_APT_SOURCE_VERSION}-1.noarch.rpm"
2323

2424
# install ros
2525
ENV ROS_DISTRO=${ROS_DISTRO}

ros2_rhel/Dockerfile.rhel9

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ ARG ROS_DISTRO=rolling
33

44
# ROS prerequisites
55
# see https://docs.ros.org/en/rolling/Installation/RHEL-Install-RPMs.html
6-
RUN dnf install -y langpacks-en glibc-langpack-en \ && \
6+
RUN dnf install -y langpacks-en glibc-langpack-en && \
77
export LANG=en_US.UTF-8 && \
88
dnf install -y 'dnf-command(config-manager)' epel-release && \
9-
dnf config-manager --set-enabled crb \
10-
&& dnf clean all
9+
dnf config-manager --set-enabled crb && \
10+
dnf clean all
1111

1212
# Setup Sources
1313
RUN export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') && \
14-
dnf install "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-release-${ROS_APT_SOURCE_VERSION}-1.noarch.rpm"
14+
dnf install -y "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-release-${ROS_APT_SOURCE_VERSION}-1.noarch.rpm"
1515

1616
# install ros
1717
RUN dnf makecache -y

0 commit comments

Comments
 (0)