92 строки
2.5 KiB
JSON
92 строки
2.5 KiB
JSON
|
{
|
||
|
"$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": {
|
||
|
"image": "mcr.microsoft.com/azureiotedge-agent:1.0",
|
||
|
"createOptions": {}
|
||
|
}
|
||
|
},
|
||
|
"edgeHub": {
|
||
|
"type": "docker",
|
||
|
"status": "running",
|
||
|
"restartPolicy": "always",
|
||
|
"settings": {
|
||
|
"image": "mcr.microsoft.com/azureiotedge-hub:1.0",
|
||
|
"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}",
|
||
|
"createOptions": "{\"Env\":[\"VIDEO_PATH=$CONTAINER_VIDEO_SOURCE\", \"VIDEO_WIDTH=0\", \"VIDEO_HEIGHT=0\", \"FONT_SCALE=0.8\"], \"HostConfig\":{\"PortBindings\":{\"80/tcp\":[{\"HostPort\":\"80\"}]}}}"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"$edgeHub": {
|
||
|
"properties.desired": {
|
||
|
"schemaVersion": "1.0",
|
||
|
"routes": {
|
||
|
},
|
||
|
"storeAndForwardConfiguration": {
|
||
|
"timeToLiveSecs": 7200
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"YoloModule" : {
|
||
|
"properties.desired": {
|
||
|
"ConfidenceLevel" : "0.3",
|
||
|
"VerboseMode" : 0,
|
||
|
"Inference" : 1,
|
||
|
"VideoSource" : ""
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|