File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,19 @@ APT::Install-Suggests "0";\n\
45
45
' > /etc/apt/apt.conf.d/01norecommend
46
46
ENV PYTHONUNBUFFERED 1
47
47
48
+ # Fix ROS 2 keys
49
+ RUN rm /etc/apt/sources.list.d/ros2-latest.list \
50
+ && rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
51
+
52
+ RUN apt-get update \
53
+ && apt-get install -y ca-certificates curl
54
+
55
+ 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}' ) ;\
56
+ curl -L -s -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" \
57
+ && apt-get update \
58
+ && apt-get install /tmp/ros2-apt-source.deb \
59
+ && rm -f /tmp/ros2-apt-source.deb
60
+
48
61
# install CI dependencies
49
62
ARG RTI_NC_LICENSE_ACCEPTED=yes
50
63
RUN apt-get update && \
You can’t perform that action at this time.
0 commit comments