Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dockerfile in docs #3917

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Changes from 2 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
24 changes: 22 additions & 2 deletions integrations/ros.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,34 @@ It provides a clean integration that requires no Conan-specific modifications in

**Pre-requisites to run the example:**

1. In order to run the example, it is exepected that you have an Ubuntu environment (22.04 LTS preferred) with `ROS2 Humble version installed <https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debs.html>`_. You can use the Docker image ``osrf/ros:humble-desktop`` instead as well.
1. In order to run the example, it is exepected that you have an Ubuntu environment (22.04 LTS preferred) with `ROS2 Humble version installed <https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debs.html>`_. You can use this Docker File that use the ``osrf/ros:humble-desktop``:
ErniGH marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: docker

FROM osrf/ros:humble-desktop
RUN apt-get update && apt-get install -y \
curl \
python3-pip \
git \
Copy link
Member

Choose a reason for hiding this comment

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

Add nav2_msgs to support blogpost example at conan-io/examples2#168

Suggested change
git \
git \
ros-humble-nav2-msgs \

&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pip && pip3 install conan==2.*
RUN conan profile detect
CMD ["bash"]


Simply copy the Dockerfile, build your image with ``docker build -t conanio/ros-humble .``, and finally run it with ``docker run -it conanio/ros-humble``.

2. The files for this example can be found at `our examples repository <https://github.com/conan-io/examples2/tree/main/examples/tools/ros/rosenv/workspace>`_.
Clone it like so to get started:

.. code-block:: bash

$ git clone https://github.com/conan-io/examples2.git && cd examples2/examples/tools/ros/rosenv
$ git clone https://github.com/conan-io/examples2.git
$ cd examples2/examples/tools/ros/rosenv






Consuming Conan packages using the ROSEnv generator
Expand Down