Skip to content

Commit dd72215

Browse files
committed
added custom compose for jetson
1 parent f9bbd7d commit dd72215

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

compose_jetson_host.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
services:
2+
ros1:
3+
container_name: ros1_noetic_devel
4+
build:
5+
context: .
6+
dockerfile: docker/Dockerfile.arm64
7+
ipc: host
8+
pid: host
9+
privileged: true
10+
network_mode: host
11+
environment:
12+
- DISPLAY=${DISPLAY:-:0}
13+
- NVIDIA_DRIVER_CAPABILITIES=all
14+
- TZ=${TZ:-UTC}
15+
- ROS_LOG_DIR=/var/log/val_logger/noetic_devel
16+
- ROS_MASTER_URI=http://localhost:11311/
17+
- DEBIAN_FRONTEND=noninteractive
18+
volumes:
19+
- ${localWorkspaceFolder:-./}local_mount/:/home/ubuntu/ros_ws
20+
- /etc/localtime:/etc/localtime:ro
21+
- /etc/timezone:/etc/timezone:ro
22+
- /tmp/.X11-unix:/tmp/.X11-unix
23+
- /var/log/val_logger:/var/log/val_logger
24+
cap_add:
25+
- NET_ADMIN
26+
- SYS_MODULE
27+
runtime: nvidia
28+
deploy:
29+
resources:
30+
reservations:
31+
devices:
32+
- driver: nvidia
33+
capabilities: [gpu]
34+
count: 1

0 commit comments

Comments
 (0)