-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (50 loc) · 2.68 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
services:
sopoware-panoptes:
# I really didn't want to, but for the bluetooth...
privileged: true
ports:
- "80:80"
container_name: sopoware-panoptes
volumes:
- /tmp/argus_socket:/tmp/argus_socket
- /sys:/sys
- /dev/bus/usb:/dev/bus/usb
- /var/run/dbus:/var/run/dbus
- /sys/class/bluetooth:/sys/class/bluetooth
- /var/lib/bluetooth:/var/lib/bluetooth
devices:
- /dev/gpiochip0:/dev/gpiochip0
- /dev/gpiochip1:/dev/gpiochip1
build:
context: .
dockerfile: ./Dockerfile
args:
MODE: 1
COLOR_SHIFT: 0
GPIO_PIN: 31
SIDEWALK_CLASS: 36
# Mode
# 0 - No printing, only prediction + determine loop
# 1 - prediction + determine loop + Debugging results printed + prediction results on port 80
# 2 - Recording mode
# 3 - Same as Mode 1, but every camera frames and predictions are saved in ./trt/save/
image: sopoware-panoptes:latest
# TODO : Is there a way to set the --group-add when the
# image is starting with 'docker-compose run'?
# R32 (release), REVISION: 5.1, GCID: 27362550, BOARD: t210ref, EABI: aarch64, DATE: Wed May 19 18:07:59 UTC 2021
# docker-compose version is 1.17, If it is installed from apt-get.
# 1.17 does not support to set runtime in docker-compose,
# You have to manually set 'runtime' when the image is starting.
# or, You could just build and install recent version of docker-compose
# Because of this, you cannot just use 'docker-compose up'.
#runtime: nvidia works on 1.27.0+
#deploy... works on 1.28.0+
#runtime: nvidia
#deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]