Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,9 @@ _commands:
apt-get update
rosdep update

# workarround for OMPL and rosdep
# https://github.com/ompl/ompl/issues/753
# Prevent searching $ROS_WS/install given it's too big for rosdep

if [ "$ROS_WS" == "<< parameters.underlay >>" ]; then
underlay_ws=""
else
underlay_ws=<< parameters.underlay >>/src
fi
echo underlay_ws = $underlay_ws

dependencies=$(
rosdep install -q -y \
--from-paths src \
$underlay_ws \
--ignore-src \
--skip-keys " \
slam_toolbox \
Expand Down Expand Up @@ -279,7 +267,7 @@ _steps:
TZ=utc stat -c '%y' /ros_entrypoint.sh | \
(echo ros_entrypoint && cat) >> lockfile.txt
sha256sum $PWD/lockfile.txt >> lockfile.txt
mv ~/.ccache $CCACHE_DIR
mv ~/.ccache $CCACHE_DIR || true
rm -rf $OVERLAY_WS/*
on_checkout: &on_checkout
checkout:
Expand Down
2 changes: 1 addition & 1 deletion .dockerhub/builder/hooks/build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -ex

export FROM_IMAGE=osrf/ros2:nightly-rmw-nonfree
export FROM_IMAGE=osrf/ros2:testing
export FAIL_ON_BUILD_FAILURE=""
export UNDERLAY_MIXINS="release ccache"

Expand Down
19 changes: 12 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# docker build -t nav2:latest \
# --build-arg UNDERLAY_MIXINS \
# --build-arg OVERLAY_MIXINS ./
ARG FROM_IMAGE=osrf/ros2:nightly
ARG FROM_IMAGE=osrf/ros2:testing
ARG UNDERLAY_WS=/opt/underlay_ws
ARG OVERLAY_WS=/opt/overlay_ws

Expand All @@ -26,11 +26,13 @@ COPY ./ ./navigation2

# copy manifests for caching
WORKDIR /opt
RUN mkdir -p /tmp/opt && \
find ./ -name "package.xml" | \
xargs cp --parents -t /tmp/opt && \
find ./ -name "COLCON_IGNORE" | \
xargs cp --parents -t /tmp/opt || true
RUN find . -name "src" -type d \
-mindepth 1 -maxdepth 2 -printf '%P\n' \
| xargs -I % mkdir -p /tmp/opt/% && \
find . -name "package.xml" \
| xargs cp --parents -t /tmp/opt && \
find . -name "COLCON_IGNORE" \
| xargs cp --parents -t /tmp/opt || true

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

# install CI dependencies
ARG RTI_NC_LICENSE_ACCEPTED=yes
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
ccache \
lcov \
python3-pip \
ros-$ROS_DISTRO-rmw-fastrtps-cpp \
ros-$ROS_DISTRO-rmw-connextdds \
ros-$ROS_DISTRO-rmw-cyclonedds-cpp \
&& pip3 install \
fastcov \
git+https://github.com/ruffsl/colcon-cache.git@c1cedadc1ac6131fe825d075526ed4ae8e1b473c \
Expand Down Expand Up @@ -89,7 +95,6 @@ COPY --from=cacher /tmp/$OVERLAY_WS ./
RUN . $UNDERLAY_WS/install/setup.sh && \
apt-get update && rosdep install -q -y \
--from-paths src \
$UNDERLAY_WS/src \
--skip-keys " \
slam_toolbox \
"\
Expand Down
48 changes: 24 additions & 24 deletions tools/underlay.repos
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
repositories:
BehaviorTree/BehaviorTree.CPP:
type: git
url: https://github.com/BehaviorTree/BehaviorTree.CPP.git
version: master
ros/angles:
type: git
url: https://github.com/ros/angles.git
version: ros2
ros-simulation/gazebo_ros_pkgs:
type: git
url: https://github.com/ros-simulation/gazebo_ros_pkgs.git
version: ros2
ros-perception/vision_opencv:
type: git
url: https://github.com/ros-perception/vision_opencv.git
version: ros2
ros/bond_core:
type: git
url: https://github.com/ros/bond_core.git
version: ros2
ompl/ompl:
type: git
url: https://github.com/ompl/ompl.git
version: 1.5.0
# BehaviorTree/BehaviorTree.CPP:
# type: git
# url: https://github.com/BehaviorTree/BehaviorTree.CPP.git
# version: master
# ros/angles:
# type: git
# url: https://github.com/ros/angles.git
# version: ros2
# ros-simulation/gazebo_ros_pkgs:
# type: git
# url: https://github.com/ros-simulation/gazebo_ros_pkgs.git
# version: ros2
# ros-perception/vision_opencv:
# type: git
# url: https://github.com/ros-perception/vision_opencv.git
# version: ros2
# ros/bond_core:
# type: git
# url: https://github.com/ros/bond_core.git
# version: ros2
# ompl/ompl:
# type: git
# url: https://github.com/ompl/ompl.git
# version: main