ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

jandaa's profile - activity

2023-08-10 07:57:51 -0500 received badge  Nice Question (source)
2023-05-26 06:25:55 -0500 received badge  Famous Question (source)
2023-03-31 03:05:49 -0500 received badge  Favorite Question (source)
2023-03-31 03:05:34 -0500 received badge  Notable Question (source)
2023-03-31 03:05:34 -0500 received badge  Popular Question (source)
2022-01-31 09:25:38 -0500 asked a question Do lifecycle nodes support the destroy transition?

Do lifecycle nodes support the destroy transition? According to the ROS documentation on managed nodes, the only transit

2021-05-27 14:22:09 -0500 received badge  Famous Question (source)
2021-03-28 11:23:03 -0500 received badge  Enthusiast
2021-03-18 13:56:49 -0500 received badge  Student (source)
2021-03-18 11:17:24 -0500 received badge  Notable Question (source)
2021-03-17 19:27:29 -0500 marked best answer How to build using Colcon inside a Dockerfile

I'm trying to use docker to build and run a ROS2 node, however in order for Colcon to build the node as an instruction in the Dockerfile, it must first have ROS2 sourced. It seems though that you cannot source a script in a dockerfile instruction, so is there a way to build a Colcon workspace as part of a dockerfile?

Essentially what I'm trying to do assuming a colcon workspace has been copied to the image is:

RUN /bin/bash -c "source /opt/ros/eloquent/setup.sh" && colcon build

2021-03-17 19:27:29 -0500 received badge  Scholar (source)
2021-03-17 19:27:20 -0500 commented answer How to build using Colcon inside a Dockerfile

Thanks that works as well!

2021-03-17 16:56:17 -0500 received badge  Popular Question (source)
2021-03-16 09:55:57 -0500 answered a question How to build using Colcon inside a Dockerfile

I found you can also write a script and execute it in the instruction. For example: #!/bin/bash source /opt/ros/"${ROS_

2021-03-16 09:55:57 -0500 received badge  Rapid Responder (source)
2021-03-16 09:55:27 -0500 edited question How to build using Colcon inside a Dockerfile

How to build using Colcon inside a Dockerfile I'm trying to use docker to build and run a ROS2 node, however in order fo

2021-03-16 09:54:58 -0500 commented answer How to build using Colcon inside a Dockerfile

Ah you're right thank you!

2021-03-15 17:00:48 -0500 edited question How to build using Colcon inside a Dockerfile

How to build using Colcon inside a Dockerfile I'm trying to use docker to build and run a ROS2 node, however in order fo

2021-03-15 17:00:48 -0500 received badge  Editor (source)
2021-03-15 16:59:07 -0500 edited question How to build using Colcon inside a Dockerfile

How to build using Colcon inside a Dockerfile I'm trying to use docker to build and run a ROS2 node, however in order fo

2021-03-15 14:24:11 -0500 asked a question How to build using Colcon inside a Dockerfile

How to build using Colcon inside a Dockerfile I'm trying to use docker to build and run a ROS2 node, however in order fo

2021-03-15 09:36:50 -0500 received badge  Supporter (source)