зеркало из
1
0
Форкнуть 0
IntelligentEdgeHOL/deployment.template.json

152 строки
4.6 KiB
JSON
Исходник Постоянная ссылка Обычный вид История

2019-05-16 12:44:56 +03:00
{
"$schema-template": "1.0.0",
"modulesContent": {
"$edgeAgent": {
"properties.desired": {
"schemaVersion": "1.0",
"runtime": {
"type": "docker",
"settings": {
"minDockerVersion": "v1.25",
"loggingOptions": "",
"registryCredentials": {
"bootcampfy19acr": {
"username": "$CONTAINER_REGISTRY_USERNAME",
"password": "$CONTAINER_REGISTRY_PASSWORD",
"address": "$CONTAINER_REGISTRY_URL"
}
}
}
},
"systemModules": {
"edgeAgent": {
"type": "docker",
"settings": {
2019-08-13 19:11:55 +03:00
"image": "mcr.microsoft.com/azureiotedge-agent:1.0.8",
2019-05-16 12:44:56 +03:00
"createOptions": {}
}
},
"edgeHub": {
"type": "docker",
"status": "running",
"restartPolicy": "always",
"settings": {
2019-08-13 19:11:55 +03:00
"image": "mcr.microsoft.com/azureiotedge-hub:1.0.8",
2019-05-16 12:44:56 +03:00
"createOptions": {
"HostConfig": {
"PortBindings": {
"5671/tcp": [
{
"HostPort": "5671"
}
],
"8883/tcp": [
{
"HostPort": "8883"
}
],
"443/tcp": [
{
"HostPort": "443"
}
]
}
}
}
}
}
},
"modules": {
"YoloModule": {
"version": "1.0",
"type": "docker",
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "${MODULES.YoloModule}",
2019-07-10 23:32:36 +03:00
"createOptions": {
"Env": [
"VIDEO_PATH=$CONTAINER_VIDEO_SOURCE",
"VIDEO_WIDTH=0",
"VIDEO_HEIGHT=0",
"FONT_SCALE=0.8"
],
"HostConfig": {
"Devices": [
{
"PathOnHost": "/dev/nvhost-ctrl",
"PathInContainer":"/dev/nvhost-ctrl",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "/dev/nvhost-ctrl-gpu",
"PathInContainer":"dev/nvhost-ctrl-gpu",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "/dev/nvhost-prof-gpu",
"PathInContainer":"dev/nvhost-prof-gpu ",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "/dev/nvmap",
"PathInContainer":"/dev/nvmap",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "dev/nvhost-gpu",
"PathInContainer":"dev/nvhost-gpu",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "/dev/nvhost-as-gpu",
"PathInContainer":"/dev/nvhost-as-gpu",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "/dev/nvhost-vic",
"PathInContainer":"/dev/nvhost-vic",
"CgroupPermissions":"rwm"
},
{
"PathOnHost": "/dev/tegra_dc_ctrl",
"PathInContainer":"/dev/tegra_dc_ctrl",
"CgroupPermissions":"rwm"
}
],
"PortBindings": {
"80/tcp": [
{
"HostPort": "80"
}
]
}
}
}
2019-05-16 12:44:56 +03:00
}
}
}
}
},
"$edgeHub": {
"properties.desired": {
"schemaVersion": "1.0",
"routes": {
"YoloModuleToIoTHub": "FROM /messages/modules/YoloModule/outputs/* INTO $upstream"
2019-05-16 12:44:56 +03:00
},
"storeAndForwardConfiguration": {
"timeToLiveSecs": 7200
}
}
2019-08-12 19:21:18 +03:00
},
"YoloModule": {
"properties.desired": {
"ConfidenceLevel": "0.3",
"VerboseMode": 0,
"Inference": 1,
"VideoSource": ""
}
2019-05-16 12:44:56 +03:00
}
}
2019-08-12 19:21:18 +03:00
}