File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ FROM osrf/ros:humble-desktop-full
44
55SHELL ["/bin/bash" , "-c" ]
66
7+ RUN rm /etc/apt/sources.list.d/ros2-latest.list \
8+ && rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
9+
10+ RUN apt-get update \
11+ && apt-get install -y ca-certificates curl
12+
13+ 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+ 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" \
15+ && apt-get update \
16+ && apt-get install /tmp/ros2-apt-source.deb \
17+ && rm -f /tmp/ros2-apt-source.deb
18+
719# Install external packages.
820# hadolint ignore=DL3008
921RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
You can’t perform that action at this time.
0 commit comments