Skip to content

YueErro/dockers

Repository files navigation

dockers

Dockerfile of different ROS distributions and robots.

# Clone this repository
git clone git@github.com:YueErro/dockers.git ~/git/dockers

Table of contents

Requirements

The following debian installation is required to run the dockers:

sudo apt-get install python3-rocker

Docker build and run

cd ~/git/dockers/<"ros/ROSdistro"or"robot/ROSDistro">
# build
bash build.sh
# run according to your graphics card (Nvidia or integrated Intel)
bash run.sh <nvidia/intel>

Troubleshooting

Latest changes in rocker don't support privileged flag and fail to run the docker. The rocker version that is currently compatible with this package is python3-rocker_0.2.12-100_all.deb. I recommend to hold this debian after installing it if you are experiencing this issue:

sudo dpkg -i python3-rocker_0.2.12-100_all.deb
sudo apt-mark hold python3-rocker

Useful information

Compile an already compiled workspace with a different ROS distro

It can be done generating a new catkin profile using catkin_tools (sudo apt-get install python-catkin-tools):

catkin config --profile <profile_name> -x _<profile_name>
catkin build --profile <profile_name>

_<profile_name> can be different from <profile_name> but it is recommended to be something similar to the <profile_name>.

New terminal in the same docker container

It can be opened as many as wanted terminal in the same docker container by just executing the following command in an already running docker container:

terminator -u &

Share files between docker container and host machine

These docker containers automatically share the users home directory. It has been added a shared directory in order to have organized the workspaces used in dockers: ~/git/dockers/shared

.
|__ros
|   |__indigo
|   |__kinetic
|   |__melodic
|   |__noetic
|__ros2
|   |__humble
|__tiago
|   |__noetic
|__tiago_dual
    |__melodic
    |__noetic

Keep in mind that anything there will be available in the docker and in your local machine.

References

About

Different Dockerfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published