-
Notifications
You must be signed in to change notification settings - Fork 3
/
service.json
51 lines (51 loc) · 1.43 KB
/
service.json
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
{
"org": "$HZN_ORG_ID",
"label": "$SERVICE_NAME for $ARCH",
"description": "A basic REST camera service",
"documentation": "https://github.com/TheMosquito/achatina/blob/master/shared/restcam/Makefile",
"url": "$SERVICE_NAME",
"version": "$SERVICE_VERSION",
"arch": "$ARCH",
"sharable": "multiple",
"requiredServices": [],
"userInput": [
{
"name": "CAM_DEVICE",
"label": "The source or device to use",
"type": "string",
"defaultValue": "V4L2:/dev/video0"
},
{
"name": "CAM_DELAY_SEC",
"label": "The delay between the CAM_DEVICE initialization and capturing",
"type": "int",
"defaultValue": "0"
},
{
"name": "CAM_OUT_WIDTH",
"label": "Scaled width of image",
"type": "int",
"defaultValue": "640"
},
{
"name": "CAM_OUT_HEIGHT",
"label": "Scaled height of image",
"type": "int",
"defaultValue": "480"
}
],
"deployment": {
"services": {
"restcam": {
"image": "$SERVICE_CONTAINER",
"ports": [
{
"HostPort": "8888:80/tcp",
"HostIP": "127.0.0.1"
}
],
"privileged": true
}
}
}
}