@@ -81,20 +81,11 @@ RUN python3 -m pip install -U \
81
81
pytest-rerunfailures \
82
82
pytest
83
83
84
- # Get the MoveIt2 source code
85
- WORKDIR ${HOME_DIR}
86
- RUN sudo git clone https://github.com/ros-planning/moveit2.git -b ${ROSDISTRO} moveit2/src
87
- RUN cd ${MOVEIT2_DIR}/src \
88
- && sudo git clone https://github.com/ros-planning/moveit2_tutorials.git -b ${ROSDISTRO}
89
-
90
- # Update the ownership of the source files (had to use sudo above to work around
91
- # a possible inherited 'insteadof' from the host that forces use of ssh
92
- RUN sudo chown -R ${USERNAME}:${USERNAME} ${MOVEIT2_DIR}
93
-
94
84
# Get rosinstall_generator
95
85
RUN sudo apt-get update -y && sudo apt-get install -y python3-rosinstall-generator
96
86
97
87
# Generate repos file for moveit2 dependencies, excluding packages from Space ROS core.
88
+ WORKDIR ${HOME_DIR}
98
89
COPY --chown=${USERNAME}:${USERNAME} moveit2-pkgs.txt /tmp/
99
90
COPY --chown=${USERNAME}:${USERNAME} excluded-pkgs.txt /tmp/
100
91
RUN rosinstall_generator \
@@ -107,9 +98,8 @@ RUN rosinstall_generator \
107
98
108
99
# Get the repositories required by MoveIt2, but not included in Space ROS
109
100
WORKDIR ${MOVEIT2_DIR}
110
- RUN vcs import src < /tmp/moveit2_generated_pkgs.repos
111
- COPY --chown=${USERNAME}:${USERNAME} moveit2_tutorials.repos /tmp/
112
- RUN vcs import src < /tmp/moveit2_tutorials.repos
101
+ RUN mkdir -p src && vcs import src < /tmp/moveit2_generated_pkgs.repos
102
+ COPY src src
113
103
114
104
# Update the ownership of the source files (had to use sudo above to work around
115
105
# a possible inherited 'insteadof' from the host that forces use of ssh
0 commit comments