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/deployment.template.json
643 views
1
{
2
"$schema-template": "4.0.0",
3
"modulesContent": {
4
"$edgeAgent": {
5
"properties.desired": {
6
"schemaVersion": "1.1",
7
"runtime": {
8
"type": "docker",
9
"settings": {
10
"minDockerVersion": "v1.25",
11
"loggingOptions": "",
12
"registryCredentials": {
13
"iprocamsdk": {
14
"username": "$CONTAINER_REGISTRY_USERNAME_iprocamsdk",
15
"password": "$CONTAINER_REGISTRY_PASSWORD_iprocamsdk",
16
"address": "iprocamsdk.azurecr.io"
17
}
18
}
19
}
20
},
21
"systemModules": {
22
"edgeAgent": {
23
"type": "docker",
24
"settings": {
25
"image": "mcr.microsoft.com/azureiotedge-agent:1.4",
26
"createOptions": {}
27
}
28
},
29
"edgeHub": {
30
"type": "docker",
31
"status": "running",
32
"restartPolicy": "always",
33
"settings": {
34
"image": "mcr.microsoft.com/azureiotedge-hub:1.4",
35
"createOptions": {
36
"HostConfig": {
37
"PortBindings": {
38
"5671/tcp": [
39
{
40
"HostPort": "5671"
41
}
42
],
43
"8883/tcp": [
44
{
45
"HostPort": "8883"
46
}
47
]
48
}
49
}
50
}
51
}
52
}
53
},
54
"modules": {
55
"additional_info_sample_app": {
56
"version": "1.0",
57
"type": "docker",
58
"status": "running",
59
"restartPolicy": "always",
60
"settings": {
61
"image": "${MODULES.additional_info_sample_app}",
62
"createOptions": {
63
"AttachStderr": true,
64
"AttachStdin": true,
65
"AttachStdout": true,
66
"Cmd": null,
67
"Domainname": "",
68
"Entrypoint": null,
69
"HostConfig": {
70
"AutoRemove": false,
71
"Binds": null,
72
"BlkioDeviceReadBps": null,
73
"BlkioDeviceReadIOps": null,
74
"BlkioDeviceWriteBps": null,
75
"BlkioDeviceWriteIOps": null,
76
"BlkioWeight": 0,
77
"BlkioWeightDevice": [],
78
"CapAdd": null,
79
"CapDrop": [
80
"net_raw"
81
],
82
"Capabilities": null,
83
"Cgroup": "",
84
"CgroupParent": "",
85
"ContainerIDFile": "",
86
"CpuCount": 0,
87
"CpuPercent": 0,
88
"CpuPeriod": 0,
89
"CpuQuota": 0,
90
"CpuRealtimePeriod": 0,
91
"CpuRealtimeRuntime": 0,
92
"CpuShares": 0,
93
"CpusetCpus": "",
94
"CpusetMems": "",
95
"DeviceCgroupRules": null,
96
"DeviceRequests": null,
97
"Devices": [
98
{
99
"PathOnHost": "/dev/cavalry",
100
"PathInContainer": "/dev/cavalry",
101
"CgroupPermissions": "mrw"
102
},
103
{
104
"PathOnHost": "/dev/iav",
105
"PathInContainer": "/dev/iav",
106
"CgroupPermissions": "mrw"
107
}
108
],
109
"Dns": [],
110
"DnsOptions": [],
111
"DnsSearch": [],
112
"ExtraHosts": null,
113
"GroupAdd": null,
114
"IOMaximumBandwidth": 0,
115
"IOMaximumIOps": 0,
116
"IpcMode": "host",
117
"Isolation": "",
118
"KernelMemory": 0,
119
"KernelMemoryTCP": 0,
120
"Links": null,
121
"LogConfig": {
122
"Config": {},
123
"Type": ""
124
},
125
"MaskedPaths": null,
126
"Memory": 52428800,
127
"MemoryReservation": 0,
128
"MemorySwap": 0,
129
"MemorySwappiness": -1,
130
"Mounts": [
131
{
132
"Target": "/ai_data",
133
"Source": "additional_info_sample_app",
134
"Type": "volume",
135
"ReadOnly": false,
136
"Consistency": "default"
137
},
138
{
139
"BindOptions": {
140
"NonRecursive": true
141
},
142
"Target": "/usr/share/lib",
143
"Source": "/mnt/system/adam/bin/share/lib/ipro",
144
"Type": "bind",
145
"ReadOnly": true,
146
"Consistency": "default"
147
},
148
{
149
"BindOptions": {
150
"NonRecursive": true
151
},
152
"Target": "/lib/firmware",
153
"Source": "/lib/firmware",
154
"Type": "bind",
155
"ReadOnly": true,
156
"Consistency": "default"
157
},
158
{
159
"BindOptions": {
160
"NonRecursive": true
161
},
162
"Target": "/dev/shm/CAdam",
163
"Source": "/dev/shm/CAdam",
164
"Type": "bind",
165
"Readonly": false,
166
"Consistency": "default"
167
},
168
{
169
"BindOptions": {
170
"NonRecursive": true
171
},
172
"Target": "/tmp/avsc",
173
"Source": "/tmp/avsc",
174
"Type": "bind",
175
"ReadOnly": false,
176
"Consistency": "default"
177
},
178
{
179
"BindOptions": {
180
"NonRecursive": true
181
},
182
"Target": "/tmp/sysba",
183
"Source": "/tmp/sysba",
184
"Type": "bind",
185
"ReadOnly": false,
186
"Consistency": "default"
187
},
188
{
189
"BindOptions": {
190
"NonRecursive": true
191
},
192
"Target": "/etc/localtime",
193
"Source": "/tmp/tz/localtime",
194
"Type": "bind",
195
"ReadOnly": true,
196
"Consistency": "default"
197
},
198
{
199
"BindOptions": {
200
"NonRecursive": true
201
},
202
"Target": "/tmp/ipc_sock",
203
"Source": "/tmp/ipc_sock",
204
"Type": "bind",
205
"ReadOnly": false,
206
"Consistency": "default"
207
},
208
{
209
"BindOptions": {
210
"NonRecursive": true
211
},
212
"Target": "/tmp/capability",
213
"Source": "/tmp/capability",
214
"Type": "bind",
215
"ReadOnly": true,
216
"Consistency": "default"
217
},
218
{
219
"BindOptions": {
220
"NonRecursive": true
221
},
222
"Target": "/tmp/fw_tmp",
223
"Source": "/tmp/fw_tmp",
224
"Type": "bind",
225
"ReadOnly": false,
226
"Consistency": "default"
227
},
228
{
229
"BindOptions": {
230
"NonRecursive": true
231
},
232
"Target": "/mnt/system/stats/uptime_total",
233
"Source": "/mnt/system/stats/uptime_total",
234
"Type": "bind",
235
"ReadOnly": true,
236
"Consistency": "default"
237
},
238
{
239
"BindOptions": {
240
"NonRecursive": true
241
},
242
"Target": "/lib/python3.7",
243
"Source": "/lib/python3.7",
244
"Type": "bind",
245
"ReadOnly": true,
246
"Consistency": "default"
247
}
248
],
249
"NanoCpus": 0,
250
"NetworkMode": "default",
251
"OomKillDisable": false,
252
"OomScoreAdj": 0,
253
"PidMode": "",
254
"PidsLimit": 0,
255
"PortBindings": {},
256
"Privileged": false,
257
"PublishAllPorts": false,
258
"ReadonlyPaths": null,
259
"ReadonlyRootfs": true,
260
"SecurityOpt": [
261
"no-new-privileges",
262
"label=type:ipro-container.process"
263
],
264
"ShmSize": 0,
265
"Tmpfs": {
266
"/tmp/local": "rw,noexec,nosuid,gid=1000,uid=1000"
267
},
268
"UTSMode": "",
269
"Ulimits": null,
270
"UsernsMode": "",
271
"VolumeDriver": "",
272
"VolumesFrom": null
273
},
274
"Labels": {
275
"com.i-pro.app-type": "i-PRO",
276
"com.i-pro.device-category": "CV5x-A",
277
"com.i-pro.device-vendor": "i-PRO"
278
},
279
"OnBuild": null,
280
"OpenStdin": true,
281
"StdinOnce": true,
282
"Tty": false,
283
"User": "1000:1000",
284
"Volumes": {},
285
"Env": [
286
"LD_LIBRARY_PATH=/usr/share/lib",
287
"CADAM_APP_TYPE=i-PRO",
288
"CADAM_LOG_LEVEL=6",
289
"APPLICATION_NAME=pyAddInfo"
290
]
291
}
292
}
293
}
294
}
295
}
296
},
297
"$edgeHub": {
298
"properties.desired": {
299
"schemaVersion": "1.1",
300
"routes": {
301
"additional_info_sample_appToIoTHub": "FROM /messages/modules/additional_info_sample_app/outputs/* INTO $upstream"
302
},
303
"storeAndForwardConfiguration": {
304
"timeToLiveSecs": 7200
305
}
306
}
307
},
308
"additional_info_sample_app": {
309
"properties.desired": {
310
"aplField": {},
311
"scheduleField": ""
312
}
313
}
314
}
315
}
316