Skip to content

Commit 083f321

Browse files
authored
Revert CI image to build from osrf/ros2:testing (#2392)
* Revert to testing image for CI * Use ompl from testing repo and modify Dockerfile to account for empty underlay * Clean up RUN directive for caching * Revert #2025 now that ompl issue is resolved ompl/ompl#753 * Continue checkout if ccache doesn't yet exist
1 parent 4400463 commit 083f321

File tree

4 files changed

+38
-45
lines changed

4 files changed

+38
-45
lines changed

‎.circleci/config.yml‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,9 @@ _commands:
6969
apt-get update
7070
rosdep update
7171
72-
# workarround for OMPL and rosdep
73-
# https://github.com/ompl/ompl/issues/753
74-
# Prevent searching $ROS_WS/install given it's too big for rosdep
75-
76-
if [ "$ROS_WS" == "<< parameters.underlay >>" ]; then
77-
underlay_ws=""
78-
else
79-
underlay_ws=<< parameters.underlay >>/src
80-
fi
81-
echo underlay_ws = $underlay_ws
82-
8372
dependencies=$(
8473
rosdep install -q -y \
8574
--from-paths src \
86-
$underlay_ws \
8775
--ignore-src \
8876
--skip-keys " \
8977
slam_toolbox \
@@ -279,7 +267,7 @@ _steps:
279267
TZ=utc stat -c '%y' /ros_entrypoint.sh | \
280268
(echo ros_entrypoint && cat) >> lockfile.txt
281269
sha256sum $PWD/lockfile.txt >> lockfile.txt
282-
mv ~/.ccache $CCACHE_DIR
270+
mv ~/.ccache $CCACHE_DIR || true
283271
rm -rf $OVERLAY_WS/*
284272
on_checkout: &on_checkout
285273
checkout:

‎.dockerhub/builder/hooks/build‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -ex
33

4-
export FROM_IMAGE=osrf/ros2:nightly-rmw-nonfree
4+
export FROM_IMAGE=osrf/ros2:testing
55
export FAIL_ON_BUILD_FAILURE=""
66
export UNDERLAY_MIXINS="release ccache"
77

‎Dockerfile‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# docker build -t nav2:latest \
77
# --build-arg UNDERLAY_MIXINS \
88
# --build-arg OVERLAY_MIXINS ./
9-
ARG FROM_IMAGE=osrf/ros2:nightly
9+
ARG FROM_IMAGE=osrf/ros2:testing
1010
ARG UNDERLAY_WS=/opt/underlay_ws
1111
ARG OVERLAY_WS=/opt/overlay_ws
1212

@@ -26,11 +26,13 @@ COPY ./ ./navigation2
2626

2727
# copy manifests for caching
2828
WORKDIR /opt
29-
RUN mkdir -p /tmp/opt && \
30-
find ./ -name "package.xml" | \
31-
xargs cp --parents -t /tmp/opt && \
32-
find ./ -name "COLCON_IGNORE" | \
33-
xargs cp --parents -t /tmp/opt || true
29+
RUN find . -name "src" -type d \
30+
-mindepth 1 -maxdepth 2 -printf '%P\n' \
31+
| xargs -I % mkdir -p /tmp/opt/% && \
32+
find . -name "package.xml" \
33+
| xargs cp --parents -t /tmp/opt && \
34+
find . -name "COLCON_IGNORE" \
35+
| xargs cp --parents -t /tmp/opt || true
3436

3537
# multi-stage for building
3638
FROM $FROM_IMAGE AS builder
@@ -43,12 +45,16 @@ APT::Install-Suggests "0";\n\
4345
' > /etc/apt/apt.conf.d/01norecommend
4446

4547
# install CI dependencies
48+
ARG RTI_NC_LICENSE_ACCEPTED=yes
4649
RUN apt-get update && \
4750
apt-get upgrade -y && \
4851
apt-get install -y \
4952
ccache \
5053
lcov \
5154
python3-pip \
55+
ros-$ROS_DISTRO-rmw-fastrtps-cpp \
56+
ros-$ROS_DISTRO-rmw-connextdds \
57+
ros-$ROS_DISTRO-rmw-cyclonedds-cpp \
5258
&& pip3 install \
5359
fastcov \
5460
git+https://github.com/ruffsl/colcon-cache.git@c1cedadc1ac6131fe825d075526ed4ae8e1b473c \
@@ -89,7 +95,6 @@ COPY --from=cacher /tmp/$OVERLAY_WS ./
8995
RUN . $UNDERLAY_WS/install/setup.sh && \
9096
apt-get update && rosdep install -q -y \
9197
--from-paths src \
92-
$UNDERLAY_WS/src \
9398
--skip-keys " \
9499
slam_toolbox \
95100
"\

‎tools/underlay.repos‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
repositories:
2-
BehaviorTree/BehaviorTree.CPP:
3-
type: git
4-
url: https://github.com/BehaviorTree/BehaviorTree.CPP.git
5-
version: master
6-
ros/angles:
7-
type: git
8-
url: https://github.com/ros/angles.git
9-
version: ros2
10-
ros-simulation/gazebo_ros_pkgs:
11-
type: git
12-
url: https://github.com/ros-simulation/gazebo_ros_pkgs.git
13-
version: ros2
14-
ros-perception/vision_opencv:
15-
type: git
16-
url: https://github.com/ros-perception/vision_opencv.git
17-
version: ros2
18-
ros/bond_core:
19-
type: git
20-
url: https://github.com/ros/bond_core.git
21-
version: ros2
22-
ompl/ompl:
23-
type: git
24-
url: https://github.com/ompl/ompl.git
25-
version: 1.5.0
2+
# BehaviorTree/BehaviorTree.CPP:
3+
# type: git
4+
# url: https://github.com/BehaviorTree/BehaviorTree.CPP.git
5+
# version: master
6+
# ros/angles:
7+
# type: git
8+
# url: https://github.com/ros/angles.git
9+
# version: ros2
10+
# ros-simulation/gazebo_ros_pkgs:
11+
# type: git
12+
# url: https://github.com/ros-simulation/gazebo_ros_pkgs.git
13+
# version: ros2
14+
# ros-perception/vision_opencv:
15+
# type: git
16+
# url: https://github.com/ros-perception/vision_opencv.git
17+
# version: ros2
18+
# ros/bond_core:
19+
# type: git
20+
# url: https://github.com/ros/bond_core.git
21+
# version: ros2
22+
# ompl/ompl:
23+
# type: git
24+
# url: https://github.com/ompl/ompl.git
25+
# version: main

0 commit comments

Comments
 (0)