1- name : cutile-python-tutorial
1+ name : &tutorial-name cutile-python
22
33x-config :
44 dockerfile : &dockerfile tutorials/cutile-python/brev/dockerfile
5- image : &image ghcr.io/nvidia/accelerated -python-tutorial:latest
5+ image : &image ghcr.io/nvidia/cutile -python-tutorial:latest
66 working-dir : &working-dir /accelerated-computing-hub/tutorials/cutile-python/notebooks
7-
8- services :
9- jupyter :
10- image : *image
11- build :
12- context : ../../..
13- dockerfile : *dockerfile
14- pull_policy : missing
7+ default-jupyter-url : &default-jupyter-url
8+ gpu-config : &gpu-config
159 privileged : true
1610 ulimits :
1711 memlock : -1
@@ -24,8 +18,45 @@ services:
2418 - driver : nvidia
2519 count : all
2620 capabilities : [gpu]
27- ports :
28- - " 0.0.0.0:8888:8888"
21+ common-service : &common-service
22+ pull_policy : missing
23+ volumes :
24+ - accelerated-computing-hub:/accelerated-computing-hub
25+ - /var/run/docker.sock:/var/run/docker.sock
26+ environment :
27+ BREV_ENV_ID : ${BREV_ENV_ID:-}
28+ ACH_TUTORIAL : *tutorial-name
29+ ACH_RUN_TESTS : ${ACH_RUN_TESTS:-}
2930 user : root
3031 working_dir : *working-dir
32+ persistent-service : &persistent-service
33+ depends_on :
34+ base :
35+ condition : service_completed_successfully
3136 restart : unless-stopped
37+
38+ services :
39+ base :
40+ << : [*gpu-config, *common-service]
41+ image : *image
42+ entrypoint : ["/accelerated-computing-hub/brev/base-start.bash"]
43+ build :
44+ context : ../../..
45+ dockerfile : *dockerfile
46+ restart : " no"
47+ jupyter :
48+ << : [*gpu-config, *common-service, *persistent-service]
49+ image : *image
50+ command : *default-jupyter-url
51+ ports :
52+ - " 0.0.0.0:8888:8888" # JupyterLab
53+ nsight :
54+ << : [*gpu-config, *common-service, *persistent-service]
55+ image : nvcr.io/nvidia/devtools/nsight-streamer-nsys:2025.3.1
56+ entrypoint : ["/accelerated-computing-hub/brev/nsight-start.bash"]
57+ ports :
58+ - " 0.0.0.0:8080:8080" # HTTP
59+ - " 0.0.0.0:3478:3478" # TURN
60+
61+ volumes :
62+ accelerated-computing-hub :
0 commit comments