Skip to content

Commit 0db2916

Browse files
committed
Fixing Jazzy CI via new ROS 2 keys
Signed-off-by: Steve Macenski <[email protected]>
1 parent 803e7b8 commit 0db2916

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ APT::Install-Suggests "0";\n\
4545
' > /etc/apt/apt.conf.d/01norecommend
4646
ENV PYTHONUNBUFFERED 1
4747

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+
4861
# install CI dependencies
4962
ARG RTI_NC_LICENSE_ACCEPTED=yes
5063
RUN apt-get update && \

0 commit comments

Comments
 (0)