Skip to content

Commit f141fbe

Browse files
committed
Add Nsight stream to the docker compose script
1 parent 96afbf3 commit f141fbe

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

build/docker-compose.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,29 @@ services:
2020
- "0.0.0.0:8888:8888" # JupyterLab
2121
volumes:
2222
- /home/ubuntu/pyhpc-tutorial:/pyhpc-tutorial
23-
- /var/run/docker.sock:/var/run/docker.sock
24-
- /usr/bin/docker:/usr/bin/docker
2523
user: root
26-
group_add:
27-
- docker
2824
working_dir: /pyhpc-tutorial/notebooks
2925
command: ["/bin/bash", "-lc", "exec python -m jupyter lab --allow-root --ip=0.0.0.0 --no-browser --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.default_url=''"]
3026
restart: unless-stopped
27+
nsight-streamer:
28+
image: nvcr.io/nvidia/devtools/nsight-streamer-nsys:2025.3.1
29+
pull_policy: always
30+
ulimits:
31+
memlock: -1
32+
stack: 67108864
33+
shm_size: 1g
34+
deploy:
35+
resources:
36+
reservations:
37+
devices:
38+
- driver: nvidia
39+
count: all
40+
capabilities: [gpu]
41+
ports:
42+
- "0.0.0.0:8080:8080" # HTTP
43+
- "0.0.0.0:3478:3478" # TURN
44+
volumes:
45+
- /home/ubuntu/pyhpc-tutorial:/pyhpc-tutorial
46+
user: root
47+
working_dir: /pyhpc-tutorial/notebooks
48+
restart: unless-stopped

0 commit comments

Comments
 (0)