16
16
#
17
17
# The script provides the following build arguments:
18
18
#
19
- # VCS_REF - The git revision of the Space ROS source code (no default value).
20
- # VERSION - The version of Space ROS (default: "preview")
19
+ # VCS_REF - The git revision of the Space ROS source code (no default value).
20
+ # VERSION - The version of Space ROS (default: "preview")
21
+ # SPACE_ROS_IMAGE - The base Space ROS image to build on
21
22
22
- FROM osrf/space-ros:latest
23
+ ARG SPACE_ROS_IMAGE=osrf/space-ros:latest
24
+
25
+ FROM ${SPACE_ROS_IMAGE}
23
26
24
27
# Define arguments used in the metadata definition
25
28
ARG VCS_REF
@@ -91,9 +94,9 @@ RUN python3 -m pip install -U \
91
94
92
95
# Get the MoveIt2 source code
93
96
WORKDIR ${HOME_DIR}
94
- RUN sudo git clone https://github.com/moveit /moveit2.git -b ${ROSDISTRO } moveit2/src
97
+ RUN sudo git clone https://github.com/ros-planning /moveit2.git -b ${ROS_DISTRO } moveit2/src
95
98
RUN cd ${MOVEIT2_DIR}/src \
96
- && sudo git clone https://github.com/moveit /moveit2_tutorials.git -b ${ROSDISTRO }
99
+ && sudo git clone https://github.com/ros-planning /moveit2_tutorials.git -b ${ROS_DISTRO }
97
100
98
101
# Update the ownership of the source files (had to use sudo above to work around
99
102
# a possible inherited 'insteadof' from the host that forces use of ssh
@@ -108,7 +111,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
108
111
COPY --chown=${USERNAME}:${USERNAME} moveit2-pkgs.txt /tmp/
109
112
COPY --chown=${USERNAME}:${USERNAME} excluded-pkgs.txt /tmp/
110
113
RUN rosinstall_generator \
111
- --rosdistro ${ROSDISTRO } \
114
+ --rosdistro ${ROS_DISTRO } \
112
115
--deps \
113
116
--exclude-path ${SPACEROS_DIR}/src \
114
117
--exclude $(cat /tmp/excluded-pkgs.txt) -- \
@@ -129,7 +132,7 @@ RUN sudo chown -R ${USERNAME}:${USERNAME} ${MOVEIT2_DIR}
129
132
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
130
133
--mount=type=cache,target=/var/lib/apt,sharing=locked \
131
134
/bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash' \
132
- && rosdep install --from-paths ../spaceros/ src src --ignore-src --rosdistro ${ROSDISTRO } -r -y --skip-keys "console_bridge generate_parameter_library fastcdr fastrtps rti-connext-dds-5.3.1 urdfdom_headers rmw_connextdds ros_testing rmw_connextdds rmw_fastrtps_cpp rmw_fastrtps_dynamic_cpp composition demo_nodes_py lifecycle rosidl_typesupport_fastrtps_cpp rosidl_typesupport_fastrtps_c ikos diagnostic_aggregator diagnostic_updater joy qt_gui rqt_gui rqt_gui_py"
135
+ && rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO } -r -y --skip-keys "console_bridge generate_parameter_library fastcdr fastrtps rti-connext-dds-5.3.1 urdfdom_headers rmw_connextdds ros_testing rmw_connextdds rmw_fastrtps_cpp rmw_fastrtps_dynamic_cpp composition demo_nodes_py lifecycle rosidl_typesupport_fastrtps_cpp rosidl_typesupport_fastrtps_c ikos diagnostic_aggregator diagnostic_updater joy qt_gui rqt_gui rqt_gui_py"
133
136
134
137
# Apply a patch to octomap_msgs to work around a build issue
135
138
COPY --chown=${USERNAME}:${USERNAME} octomap_fix.diff ./src/octomap_msgs
0 commit comments