Skip to content
Snippets Groups Projects
Unverified Commit 0796964b authored by Nikolaos Passalis's avatar Nikolaos Passalis Committed by GitHub
Browse files

Docker scheduled tests update (#298)


* Update docker test to the latest version

* Update docker version in installation.md

Co-authored-by: default avatarad-daniel <44834743+ad-daniel@users.noreply.github.com>
Co-authored-by: default avatarStefania Pedrazzi <stefaniapedrazzi@users.noreply.github.com>
parent fa1b2dac
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,6 @@ jobs:
python-version: 3.8
- name: Test Docker
run: |
docker run --name toolkit -i opendr/opendr-toolkit:cpu_latest bash
docker run --name toolkit -i opendr/opendr-toolkit:cpu_v1.1.1 bash
docker start toolkit
docker exec -i toolkit bash -c "source bin/activate.sh && source tests/sources/tools/control/mobile_manipulation/run_ros.sh && python -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
......@@ -162,18 +162,18 @@ source bin/activate.sh
If you want to display GTK-based applications from the Docker container (e.g., visualize results using OpenCV `imshow()`), then you should mount the X server socket inside the container, e.g.,
```bash
xhost +local:root
sudo docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY opendr/opendr-toolkit:cpu_latest /bin/bash
sudo docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY opendr/opendr-toolkit:cpu_v1.1.1 /bin/bash
```
## GPU docker
If you want to use a CUDA-enabled container please install [nvidia-docker](https://github.com/NVIDIA/nvidia-docker).
Then, you can directly run the latest image with the command:
```bash
sudo docker run --gpus all -p 8888:8888 opendr/opendr-toolkit:cuda_latest
sudo docker run --gpus all -p 8888:8888 opendr/opendr-toolkit:cuda_v1.1.1
```
or, for an interactive session:
```bash
sudo docker run --gpus all -it opendr/opendr-toolkit:cuda_latest /bin/bash
sudo docker run --gpus all -it opendr/opendr-toolkit:cuda_v1.1.1 /bin/bash
```
In this case, do not forget to enable the virtual environment with:
```bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment