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

ros one for 22.04 in dockerhub #37

Open
lucasw opened this issue Mar 6, 2024 · 4 comments
Open

ros one for 22.04 in dockerhub #37

lucasw opened this issue Mar 6, 2024 · 4 comments
Assignees

Comments

@lucasw
Copy link
Owner

lucasw commented Mar 6, 2024

Use debian package from the 0.0.6 release https://github.com/lucasw/ros_from_src/releases/tag/ros2204-v0.0.6

Download the full deb file and extract it in ros_from_src/debian

https://github.com/lucasw/ros_from_src/tree/debianize

Make the lateset here contain the 0.0.6 version:
https://hub.docker.com/r/lucasw0/ros_from_src_ubuntu_2204

cd ros_from_src
docker build debian -t ros_from_src_ubuntu_2204
...
docker tag ros_from_src_ubuntu_2204 lucasw0/ros_from_src_ubuntu_2204:latest
docker push lucasw0/ros_from_src_ubuntu_2204:latest

The push refers to repository [docker.io/lucasw0/ros_from_src_ubuntu_2204]

Once tested push to :latest

And once that is done other dockerfiles can use it like this:

FROM lucasw0/ros_from_src_ubuntu_2204:latest
@lucasw lucasw self-assigned this Mar 6, 2024
@lucasw
Copy link
Owner Author

lucasw commented Mar 6, 2024

Having an issue running catkin when using the deb installed in a docker image- rebuild the deb so source /opt/ros/one/setup.bash works and try again.

Actually the issue is that the catkin_tools isn't installed at all into the debian docker image, ubuntu_2204/Dockerfile installs it to /opt/ros/base - nothing puts that into a deb.

For now build those tools separately in debian/Dockerfile, later wrap them up in a deb.

@lucasw
Copy link
Owner Author

lucasw commented Mar 6, 2024

Now the deb installed in docker isn't producing a ROS_PACKAGE_PATH, can set it manually but commands like rosrun xacro xacro don't work:

root@df3591567419:~# export ROS_PACKAGE_PATH=/opt/ros/one:/usr/share
root@df3591567419:~# rosrun xacro xacro
[rosrun] Couldn't find executable named xacro below /opt/ros/one/share/xacro
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /opt/ros/one/share/xacro
root@df3591567419:~# rospack find xacro
/opt/ros/one/share/xacro
root@df3591567419:~# xacro
Usage: xacro [options] <input>

xacro: error: expected exactly one input file as argument
root@df3591567419:~# which xacro
/opt/ros/one/bin/xacro

@lucasw
Copy link
Owner Author

lucasw commented Mar 6, 2024

@lucasw
Copy link
Owner Author

lucasw commented Mar 8, 2024

Next will have a v0.0.7 version with https://github.com/lucasw/ros_from_src/releases/tag/ros2204-v0.0.7-vdb-mapping

Need to upload the contents of $DEST in order to use the other built software

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

No branches or pull requests

1 participant