forked from moveit/moveit2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ci-testing Dockerfile to update the ROS_DISTRO (moveit#2035)
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
# ghcr.io/ros-planning/moveit2:${ROS_DISTRO}-ci-testing | ||
# ghcr.io/ros-planning/moveit2:${OUR_ROS_DISTRO}-ci-testing | ||
# CI image using the ROS testing repository | ||
|
||
ARG ROS_DISTRO=rolling | ||
FROM moveit/moveit2:${ROS_DISTRO}-ci | ||
FROM osrf/ros2:testing | ||
LABEL maintainer Robert Haschke [email protected] | ||
|
||
ENV TERM xterm | ||
|
||
# Overwrite the ROS_DISTRO set in osrf/ros2:testing to the distro tied to this Dockerfile (OUR_ROS_DISTRO). | ||
# In case ROS_DISTRO is now different from what was set in osrf/ros2:testing, run `rosdep update` again | ||
# to get any missing dependencies. | ||
# https://docs.docker.com/engine/reference/builder/#using-arg-variables explains why ARG and ENV can't have | ||
# the same name (ROS_DISTRO is an ENV in the osrf/ros2:testing image). | ||
ARG OUR_ROS_DISTRO=rolling | ||
ENV ROS_DISTRO=${OUR_ROS_DISTRO} | ||
RUN rosdep update --rosdistro $ROS_DISTRO | ||
|
||
# Install ROS 2 base packages and build tools | ||
# We are installing ros-<distro>-ros-base here to mimic the behavior of the ros:<distro>-ros-base images. | ||
# This step is split into a separate layer so that we can rely on cached dependencies instead of having | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters