Skip to content

ros2:devel template#57

Merged
ruffsl merged 2 commits intomasterfrom
ros2_devel_template
Mar 29, 2019
Merged

ros2:devel template#57
ruffsl merged 2 commits intomasterfrom
ros2_devel_template

Conversation

@mikaelarguedas
Copy link
Copy Markdown
Contributor

separate source template into 2: a devel and a source templates as follow:

Devel:

Content

  • the ROS tools and apt repositories
  • install extra dependencies
  • bootstrap rosdep
  • create and build an empty workspace

Build Arguments

  • ARG FROM_IMAGE to use a different base image (e.g building a debian:stretch image instead of an ubuntu:bionic one)

Source

The source template will now build on top of the ros2:devel image:

Content

  • install extra dependencies
  • set ROS_DISTRO
  • import repos files
  • build the workspace
  • run the tests if specified

Build Arguments

  • ARG FROM_IMAGE to override base image (e.g. to use ros2:devel-stretch instead of osrf/ros2:devel)
  • ARG ROS_DISTRO to specify the ROS_DISTRO (otherwise crystal will be set in the env var ROS_DISTRO)
  • ARG RUN_TESTS to run colcon test after the build. Disable by default, enabled if arg set to anything but empty string
  • ARG FAIL_ON_TEST_FAILURE to specify if the image should fail to build on test failures, disabled by default, enabled if arg set to anything but empty string

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
Copy link
Copy Markdown
Member

@ruffsl ruffsl left a comment

Choose a reason for hiding this comment

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

I've commented on the generated files for this review for simplicity: osrf/docker_images#246 (review)

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
@mikaelarguedas
Copy link
Copy Markdown
Contributor Author

thanks for the review 🙇‍♂️ . I replied inline.
The requested change has been addressed in d9e0852

@ruffsl ruffsl merged commit e2af4c2 into master Mar 29, 2019
@mikaelarguedas mikaelarguedas deleted the ros2_devel_template branch March 29, 2019 19:45
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