Path: blob/master/stream/ipro-adam-app/container/docker-compose.yaml
643 views
services:1adam:2image: "stream-adam:1.1"3command: /app/bin/pyAddInfo4environment:5- LD_LIBRARY_PATH=/usr/share/lib:/usr/share/common6- CADAM_APP_TYPE=i-PRO7- CADAM_LOG_LEVEL=68- APPLICATION_NAME=pyAddInfo9networks:10- nw-frontend11restart: no12# deploy:13# resources:14# limits:15# # cpus: "1.00"16# memory: "52428800"17# mem_reservation: "52428800"1819read_only: true20user:211000:100022cap_drop:23- "net_raw"24security_opt:25- "label=type:ipro-container.process"26- "no-new-privileges"2728devices:29- "/dev/cavalry:/dev/cavalry:mrw"30- "/dev/iav:/dev/iav:mrw"31volumes:32- type: volume33source: adam34target: "/ai_data"35read_only: false36consistency: default37- type: bind38target: "/usr/share/lib"39source: "/mnt/system/adam/bin/share/lib/extdocker"40read_only: true41consistency: default42- type: bind43target: "/usr/share/common"44source: "/mnt/system/adam/bin/share/lib/common"45read_only: true46consistency: default47- type: bind48target: "/lib/python3.7"49source: "/lib/python3.7"50read_only: true51consistency: default52- type: bind53target: "/lib/firmware"54source: "/lib/firmware"55read_only: true56consistency: default57- type: bind58target: "/dev/shm/Adam"59source: "/dev/shm/Adam"60read_only: false61consistency: default62- type: bind63target: "/dev/shm/Adamapp"64source: "/dev/shm/Adamapp"65read_only: false66consistency: default67- type: bind68target: "/tmp/avsc"69source: "/tmp/avsc"70read_only: false71consistency: default72- type: bind73target: "/tmp/sysba"74source: "/tmp/sysba"75read_only: false76consistency: default77- type: bind78target: "/etc/localtime"79source: "/tmp/tz/localtime"80read_only: true81consistency: default82- type: bind83target: "/tmp/ipc_sock"84source: "/tmp/ipc_sock"85read_only: false86consistency: default87- type: bind88target: "/tmp/capability"89source: "/tmp/capability"90read_only: true91consistency: default92- type: bind93target: "/tmp/fw_tmp"94source: "/tmp/fw_tmp"95read_only: false96consistency: default97- type: bind98target: "/mnt/system/stats/uptime_total"99source: "/mnt/system/stats/uptime_total"100read_only: true101consistency: default102- type: bind103target: "/var/log/adam"104source: "/var/log/adam"105read_only: false106consistency: default107- type: bind108target: "/tmp/pflog_mask_shmid"109source: "/tmp/pflog_mask_shmid"110read_only: false111consistency: default112113# TODO SD Card Mounts114# - type: bind115# target: "/sdcard"116# source: "/mnt/sda/adamapp/stream"117# read_only: false118# consistency: default119# 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.120# In the new firmware version, camera will automatically create the folder defined in docker-compose.yaml(/mnt/sda/adamapp/stream)121# Camera mounts SD card as “/mnt/sda” and allows partner apps to access under “/mnt/sda/adamapp”.122123tmpfs:124- /tmp/local:rw,noexec,nosuid,gid=1000,uid=1000125126labels:127com.i-pro.app-type: "ext"128com.i-pro.device-category: "CV5x-A"129com.i-pro.device-vendor: "i-PRO"130131init: true132ipc: host133134sdk:135image: "alpr-stream:arm-lite"136networks:137- nw-frontend138restart: always139volumes:140- type: volume141source: adam142target: "/ai_data"143read_only: false144consistency: default145146- type: volume147source: sdk148target: "/user-data"149read_only: false150consistency: default151152tmpfs:153- /var/run:rw,noexec,nosuid,gid=1000,uid=1000154155# read config from /ai_data/env-file.ini156# command: cat /ai_data/env-file.ini157environment:158- EXTRA_ENV_FILE=/ai_data/env-file.ini159160read_only: true161user:1621000:1000163cap_drop:164- "net_raw"165security_opt:166- "label=type:ipro-container.process"167- "no-new-privileges"168labels:169com.i-pro.app-type: "ext"170com.i-pro.device-category: "CV5x-A"171com.i-pro.device-vendor: "i-PRO"172depends_on:173- adam174175volumes:176adam:177sdk:178179180networks:181nw-frontend:182driver: bridge183184185