Skip to content

Update cookbook usage to handle multiple rosdistros.#496

Merged
brawner merged 15 commits intobrawner/ros2_windows_cheffrom
nuclearsandwich/update-ros2-windows-chef
Jul 21, 2020
Merged

Update cookbook usage to handle multiple rosdistros.#496
brawner merged 15 commits intobrawner/ros2_windows_cheffrom
nuclearsandwich/update-ros2-windows-chef

Conversation

@nuclearsandwich
Copy link
Member

This update should be applied to #425 before merging it.

With this change the differences in configuration and installed software are delegated to the chef cookbook which means there's no longer a reason for rosdistro-specific dockerfiles.

The different json files set the ros_distro attribute appropriately and change the run-list to install additional rmw providers if they are supported by the distro.

brawner and others added 15 commits July 20, 2020 16:28
Instead of using separate dockerfiles for different ROS distros this
uses separate chef environment files to set a ros_distro attribute which
can be used inside the chef cookbook.

If this is successful we can unify the separate Dockerfiles and modify
software in the chef cookbook.
I forgot that environment paths must be configured instead of specifying
an absolute path to an environment file.
Unlike cookbook_path, environment_path must be a single string.
We're going to instead add the attribute directly to the
install_ros2.json files.
With the setup being performed by chef the Dockerfiles aren't distinct
enough to warrant separate files and we can instead use a single
dockerfile with different chef attributes.

This also means we can stop fudging the ros_distro parameter since the
common behavior is also implemented in Chef.
@nuclearsandwich nuclearsandwich requested a review from brawner July 20, 2020 20:40
@nuclearsandwich nuclearsandwich self-assigned this Jul 20, 2020
Copy link
Contributor

@brawner brawner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this been tested or should I run it once it's merged into the target branch?

@nuclearsandwich
Copy link
Member Author

Has this been tested or should I run it once it's merged into the target branch?

I've run a handful of test builds to make sure I got this right during development. These just build up to rcutils and so aren't comprehensive but they test that chef runs to completion. We'll want to do some full CI builds of the final RC PR.

Foxy Build Status
Dashing Build Status

@brawner brawner merged commit dd16f76 into brawner/ros2_windows_chef Jul 21, 2020
@delete-merged-branch delete-merged-branch bot deleted the nuclearsandwich/update-ros2-windows-chef branch July 21, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants