Skip to content

Commit

Permalink
Add device warning and use cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Oct 27, 2024
1 parent c618328 commit afeb0e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 8 additions & 3 deletions source/exegol-image/my-resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,17 @@ In the container, the ``/opt/my-resources/bin/`` folder (``~/.exegol/my-resource

.. code-block:: bash
# Example for a standalone binary
# Example for a standalone binary on your host
cp /path/to/tool ~/.exegol/my-resources/bin/
# or for a standalone binary on your exegol container
cp /path/to/tool /opt/my-resources/bin/
# Example for a symbolic link
# Example for a symbolic link from your host
git -C ~/.exegol/my-resources/ clone "https://github.com/someauthor/sometool"
ln -s ~/.exegol/my-resources/sometool/script.py ~/.exegol/my-resources/bin/script.py
ln -s ../sometool/script.py ~/.exegol/my-resources/bin/script.py
# or from your exegol container
git -C /opt/my-resources/ clone "https://github.com/someauthor/sometool"
ln -s /opt/my-resources/sometool/script.py /opt/my-resources/bin/script.py
.. _Supported-setups:
Expand Down
5 changes: 5 additions & 0 deletions source/the-exegol-project/python-wrapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ See the option ``--device DEVICES`` of the :ref:`start action <start_options>` f

Windows and MacOS installations are subject to the constraints and limitations of `Docker Desktop <https://docs.docker.com/desktop/faqs/#can-i-pass-through-a-usb-device-to-a-container>`__.

.. warning::
Docker only load shared device at container **startup**. If you have to unplug / plug again your device it might **no longer works** until you **restart** the container with ``exegol restart <container_name>``.

This bug occurs even if the ``/dev/ttyACM0`` device is still present in your container.

.. _feature_hostname:

Custom hostname
Expand Down

0 comments on commit afeb0e1

Please sign in to comment.