forked from StoglRobotics/ros_team_workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for docker containers connected to a workspace (StoglRobo…
- Loading branch information
Showing
20 changed files
with
1,051 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
============================== | ||
Use Cases with docker support | ||
============================== | ||
.. _uc-with-docker-support-index: | ||
|
||
All use cases with docker suppert are listed below. For a detailed description of the use case as well as the respective commands, you can click on the link in the use case column. | ||
|
||
.. list-table:: Overview of currently supported use cases | ||
:widths: auto | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
|
||
* - use case | ||
- docker command | ||
- description | ||
* - :ref:`Setup a new Workspace<uc-setup-docker-workspace>` with ``setup-ros-workspace`` | ||
- ``setup-ros-workspace-docker`` | ||
- Creates a new workspace and maps the workspace inside a docker container. You can then switch to docker using ``rtw_switch_to_docker``. |
32 changes: 32 additions & 0 deletions
32
docs/docker/general_information_docker/general_information_docker.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
============================== | ||
General information on docker | ||
============================== | ||
.. _general-info-on-docker-index: | ||
|
||
Generally you can always have a look at the `docs of docker <https://docs.docker.com/>`_. | ||
|
||
Installation | ||
"""""""""""""""" | ||
You have to install docker which is dependent on the operating system you are using. | ||
|
||
* `Windows <https://docs.docker.com/desktop/windows/install/>`_ | ||
* `Mac <https://docs.docker.com/desktop/mac/install/>`_ | ||
* `Linux <https://docs.docker.com/engine/install/>`_: it depends. | ||
|
||
.. note:: | ||
However make sure your user is in the docker group. Check with: ``groups`` command. To add your user to the docker group run: ``sudo usermod -aG docker <username>``. | ||
|
||
Usful commands | ||
"""""""""""""""" | ||
For complete list of commands have a look at `official docker cli reference <https://docs.docker.com/engine/reference/commandline/cli/>`_. | ||
|
||
* ``docker container <command>``: | ||
|
||
* ``ls`` lists all current active containers | ||
* ``ls -a`` lists all containers | ||
* ``rm <container>`` removes container | ||
|
||
* ``docker image <command>``: | ||
|
||
* ``ls`` lists all images | ||
* ``rm <image>`` removes image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
=========== | ||
Docker | ||
=========== | ||
.. _docker-overview: | ||
|
||
RosTeamWS supports the usage of docker containers. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
general_information_docker/* | ||
docker_use_cases/* | ||
supported_versions/* | ||
|
||
.. note:: | ||
If you want to forward a xsession from docker (e.g. rviz2), you have to install xhost. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
============================================= | ||
Supported ros versions and operating systems | ||
============================================= | ||
.. _supported-os-ros-docker-versions-index: | ||
|
||
For the supported Ubuntu and ros version combinations have a look at the table below. | ||
|
||
.. list-table:: Supported Ubuntu and ros versions combinations are marked with an X. | ||
:widths: auto | ||
:header-rows: 1 | ||
:stub-columns: 1 | ||
|
||
* - ros version | ||
- ubuntu 20.04 | ||
- ubuntu 22.04 | ||
* - foxy | ||
- X | ||
- | ||
* - galactic | ||
- X | ||
- | ||
* - rolling | ||
- X | ||
- X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
================================ | ||
FAQ | ||
================================ | ||
|
||
On Docker | ||
---------------- | ||
|
||
How to forward a xsession | ||
""""""""""""""""""""""""""""" | ||
If you want to forward a xsession from docker (e.g. rviz2), you have to install xhost. When executing the commands ``start_container`` the docker user is added to the X Server access list. | ||
|
||
sudo: unable to resolve host <hostname>: Name or service not known | ||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
Problem using sudo: If you encounter following message trying to use sudo: ``sudo: unable to resolve host <hostname>: Name or service not known``. You have to add ``127.0.0.1 <hostname>`` to the ``/etc/hosts`` file inside the container. However, using sudo should work fine without adding it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.