Skip to content

Commit

Permalink
feat: Re-add Docker-Compose file for Nvidia GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Jul 9, 2023
1 parent ac2e415 commit 80365b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Docker PREEMPT_RT real-time",
"dockerComposeFile": [
"../docker/docker-compose.yml" // Alternative: "../docker/docker-compose-gui.yml"
"../docker/docker-compose.yml" // Alternative: "../docker/docker-compose-gui.yml", "../docker/docker-compose-gui-nvidia.yml"
],
"service": "docker_realtime",
"workspaceFolder": "/benchmark",
Expand Down
10 changes: 10 additions & 0 deletions docker/docker-compose-gui-nvidia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3.9"
services:
docker_realtime:
extends:
file: docker-compose-gui.yml
service: docker_realtime
environment:
- NVIDIA_DRIVER_CAPABILITIES=all
- NVIDIA_VISIBLE_DEVICES=all
runtime: nvidia

0 comments on commit 80365b9

Please sign in to comment.