-
Notifications
You must be signed in to change notification settings - Fork 23
/
static-image.yml
47 lines (44 loc) · 1.24 KB
/
static-image.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
version: '3.3'
services:
object-detector-python:
image: ${APP_NAME}
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100k"
environment:
- PYTHONUNBUFFERED=1
- INFERENCE_HOST=unix:///tmp/acap-runtime.sock
- INFERENCE_PORT=0
- MODEL_PATH=${MODEL_PATH}
- OBJECT_LIST_PATH=/models/coco_labels.txt
- IMAGE_PATH=dog416.png
volumes:
- /usr/lib/libvdostream.so.1:/usr/lib/libvdostream.so.1
- acap_dl-models:/models:ro
- /tmp:/output
- /var/run/dbus:/var/run/dbus:rw
- inference-server:/tmp
inference-server:
image: ${INFERENCE_SERVER_IMAGE}
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100k"
entrypoint: ["/opt/app/acap_runtime/acapruntime", "-m", "${MODEL_PATH}", "-j", "${INFERENCE_CHIP}"]
volumes:
- acap_dl-models:/models:ro
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
- /run/parhand/parhandsocket:/run/parhand/parhandsocket
- /usr/lib:/usr/lib
- /usr/bin:/usr/bin
- inference-server:/tmp
acap_dl-models:
image: ${MODEL_NAME}
volumes:
- acap_dl-models:/models
volumes:
acap_dl-models: {}
inference-server: {}