Skip to content

Can we get a ros2:latest dockerfile? #201

Closed

Description

@mkhansenbot

We're trying to use Travis CI to test our Navigation code, and when building from source it takes too long (> 50 minutes) to build ROS2. We've been using the ros2:bouncy-desktop tagged docker image, but we'd like to move to using the master branch (or equivalent) for our development and testing. I wanted to know if there's a daily build (or at least weekly) that could generate a ros2:latest docker image for us to pull and use in our testing. That would really help.

Activity

  1. sloretz commented on Oct 19, 2018

    @sloretz
    Contributor

    I don't think there is a nightly docker image, but there are nightly packaging jobs. They create an archive with a ROS 2 workspace that could be used as an underlay for your CI

    https://ci.ros2.org/view/packaging/

    For a linux job

    wget https://ci.ros2.org/view/packaging/job/packaging_linux/lastSuccessfulBuild/artifact/ws/ros2-package-linux-x86_64.tar.bz2
    tar -xjvf ros2-package-linux-x86_64.tar.bz2
    . ros2-linux/setup.bash
    # Now build other stuff on top
  2. mkhansenbot commented on Oct 19, 2018

    @mkhansenbot
    Author

    I'll give this a try! Thanks @sloretz

  3. mkhansenbot commented on Oct 19, 2018

    @mkhansenbot
    Author

    OK, this works. However, it still would be nicer if the nightly build also generated a Docker image like the ones being generated by this repo. Maybe a future enhancement? :) @ruffsl - is that something you would know how to do?

  4. ruffsl commented on Oct 20, 2018

    @ruffsl
    Member

    @mkhansen-intel , to be clear, between the title of this issue vs what your requesting. are you asking for:

    • A added ROS2 Dockerfile that builds the latest master branches of ROS2 from source
    • Additionally, host a nightly derived Docker image using a automated repo on Docker Hub

    Having an automated repo build the master branch of ROS2 from source wouldn't be hard, given we already have the Dockerfile scaffolding for creating one that builds the latest stable release from source:

    RUN wget https://raw.githubusercontent.com/ros2/ros2/release-latest/ros2.repos \
    && vcs import src < ros2.repos

    However, as per @sloretz mentioned, there seem to be some nice readily available nightly builds from https://ci.ros2.org/view/packaging, so I would be inclined to rely on those, rather than force Travis or Docker Hup to duplicate the same workload.

    That being said, I still think there would be some value in wrapping such nightly builds into a Docker image hosted from an automated repo on Docker Hub, i.e. have those same nightly builds also trigger a webhook under our ros2 docker hub repo to build an image that installs and sets up those binaries. Then other users could just point there derived automated repos to trigger of that, etc.

    I'll start a PR for the Docker image, but I'll need some assistance from someone else with org permissions to created the webhook and embed the callback in the nightly build job on ci.ros2.org to trigger it event based.

    also pinging @tfoote @nuclearsandwich

  5. ruffsl commented on Feb 20, 2019

    @ruffsl
    Member

    With the referenced PRs above merged and nightly tag now live, I think we can finally close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions