Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
parkpow
GitHub Repository: parkpow/deep-license-plate-recognition
Path: blob/master/stream/ipro-adam-app/container/docker-compose.yaml
643 views
1
services:
2
adam:
3
image: "stream-adam:1.1"
4
command: /app/bin/pyAddInfo
5
environment:
6
- LD_LIBRARY_PATH=/usr/share/lib:/usr/share/common
7
- CADAM_APP_TYPE=i-PRO
8
- CADAM_LOG_LEVEL=6
9
- APPLICATION_NAME=pyAddInfo
10
networks:
11
- nw-frontend
12
restart: no
13
# deploy:
14
# resources:
15
# limits:
16
# # cpus: "1.00"
17
# memory: "52428800"
18
# mem_reservation: "52428800"
19
20
read_only: true
21
user:
22
1000:1000
23
cap_drop:
24
- "net_raw"
25
security_opt:
26
- "label=type:ipro-container.process"
27
- "no-new-privileges"
28
29
devices:
30
- "/dev/cavalry:/dev/cavalry:mrw"
31
- "/dev/iav:/dev/iav:mrw"
32
volumes:
33
- type: volume
34
source: adam
35
target: "/ai_data"
36
read_only: false
37
consistency: default
38
- type: bind
39
target: "/usr/share/lib"
40
source: "/mnt/system/adam/bin/share/lib/extdocker"
41
read_only: true
42
consistency: default
43
- type: bind
44
target: "/usr/share/common"
45
source: "/mnt/system/adam/bin/share/lib/common"
46
read_only: true
47
consistency: default
48
- type: bind
49
target: "/lib/python3.7"
50
source: "/lib/python3.7"
51
read_only: true
52
consistency: default
53
- type: bind
54
target: "/lib/firmware"
55
source: "/lib/firmware"
56
read_only: true
57
consistency: default
58
- type: bind
59
target: "/dev/shm/Adam"
60
source: "/dev/shm/Adam"
61
read_only: false
62
consistency: default
63
- type: bind
64
target: "/dev/shm/Adamapp"
65
source: "/dev/shm/Adamapp"
66
read_only: false
67
consistency: default
68
- type: bind
69
target: "/tmp/avsc"
70
source: "/tmp/avsc"
71
read_only: false
72
consistency: default
73
- type: bind
74
target: "/tmp/sysba"
75
source: "/tmp/sysba"
76
read_only: false
77
consistency: default
78
- type: bind
79
target: "/etc/localtime"
80
source: "/tmp/tz/localtime"
81
read_only: true
82
consistency: default
83
- type: bind
84
target: "/tmp/ipc_sock"
85
source: "/tmp/ipc_sock"
86
read_only: false
87
consistency: default
88
- type: bind
89
target: "/tmp/capability"
90
source: "/tmp/capability"
91
read_only: true
92
consistency: default
93
- type: bind
94
target: "/tmp/fw_tmp"
95
source: "/tmp/fw_tmp"
96
read_only: false
97
consistency: default
98
- type: bind
99
target: "/mnt/system/stats/uptime_total"
100
source: "/mnt/system/stats/uptime_total"
101
read_only: true
102
consistency: default
103
- type: bind
104
target: "/var/log/adam"
105
source: "/var/log/adam"
106
read_only: false
107
consistency: default
108
- type: bind
109
target: "/tmp/pflog_mask_shmid"
110
source: "/tmp/pflog_mask_shmid"
111
read_only: false
112
consistency: default
113
114
# TODO SD Card Mounts
115
# - type: bind
116
# target: "/sdcard"
117
# source: "/mnt/sda/adamapp/stream"
118
# read_only: false
119
# consistency: default
120
# As of now, after you format SD card in ext format, you need to create folder(/mnt/sda/adamapp/stream) manually. Then, you can install ext application.
121
# In the new firmware version, camera will automatically create the folder defined in docker-compose.yaml(/mnt/sda/adamapp/stream)
122
# Camera mounts SD card as “/mnt/sda” and allows partner apps to access under “/mnt/sda/adamapp”.
123
124
tmpfs:
125
- /tmp/local:rw,noexec,nosuid,gid=1000,uid=1000
126
127
labels:
128
com.i-pro.app-type: "ext"
129
com.i-pro.device-category: "CV5x-A"
130
com.i-pro.device-vendor: "i-PRO"
131
132
init: true
133
ipc: host
134
135
sdk:
136
image: "alpr-stream:arm-lite"
137
networks:
138
- nw-frontend
139
restart: always
140
volumes:
141
- type: volume
142
source: adam
143
target: "/ai_data"
144
read_only: false
145
consistency: default
146
147
- type: volume
148
source: sdk
149
target: "/user-data"
150
read_only: false
151
consistency: default
152
153
tmpfs:
154
- /var/run:rw,noexec,nosuid,gid=1000,uid=1000
155
156
# read config from /ai_data/env-file.ini
157
# command: cat /ai_data/env-file.ini
158
environment:
159
- EXTRA_ENV_FILE=/ai_data/env-file.ini
160
161
read_only: true
162
user:
163
1000:1000
164
cap_drop:
165
- "net_raw"
166
security_opt:
167
- "label=type:ipro-container.process"
168
- "no-new-privileges"
169
labels:
170
com.i-pro.app-type: "ext"
171
com.i-pro.device-category: "CV5x-A"
172
com.i-pro.device-vendor: "i-PRO"
173
depends_on:
174
- adam
175
176
volumes:
177
adam:
178
sdk:
179
180
181
networks:
182
nw-frontend:
183
driver: bridge
184
185