Skip to content
Snippets Groups Projects
Commit dd6cbe15 authored by Jonas Kvarnström's avatar Jonas Kvarnström
Browse files

Instruction updates, docker nvidia

parent 79a02022
No related branches found
No related tags found
No related merge requests found
......@@ -12,12 +12,12 @@ To install a development environment, follow these steps:
- [Log in to the Docker Registry](doc/docker_login.md) using a Deploy Key or Gitlab user/keyword
- [Install Nvidia Docker drivers](doc/docker_nvidia.md) if you have an Nvidia graphics card and you are not using a virtual machine
-
## Development Environments
- [Prepare Existing ROS Computer](doc/prepare_ros_computer.md)
- [Using a Local ROS Installation with LRS Docker Modules](doc/local_ros_installation.md)
......
# Installing Nvidia Drivers for Docker
If you are **not** using a virtual machine (you run Ubuntu LTS directly on your computer), and you have an nVidia graphics card, you can get 3D-accelerated graphics according to [these instructions](https://github.com/NVIDIA/nvidia-docker).
Alternatively, do the following (though the web page linked above may be more up to date):
```bash
# Add the package repositories
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
```
# Prepare Existing Computer
+++++++++++++++ Obsolete? ++++++++++++++++++++
If you already have a ROS computer with a docker daeamon follow the
instructions below.
......@@ -40,19 +42,3 @@ git clone https://gitlab.liu.se/lrs/lrs_srvs_cons.git
git clone https://gitlab.liu.se/lrs/lrs_wara_gazebo.git
git clone https://gitlab.liu.se/lrs/lrs_common.git
```
### NVIDIA drivers Docker
To get nvidia graphics to work in docker see:
- https://github.com/NVIDIA/nvidia-docker
or just do:
```bash
# Add the package repositories
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
```
\ No newline at end of file
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