This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from linkernetworks/linker
FactoryAI Update Readme, Update Installer
- Loading branch information
Showing
25 changed files
with
962 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
307 changes: 307 additions & 0 deletions
307
factory-ai-vision/EdgeSolution/deployment.vpu.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,307 @@ | ||
{ | ||
"$schema-template": "2.0.0", | ||
"modulesContent": { | ||
"$edgeAgent": { | ||
"properties.desired": { | ||
"schemaVersion": "1.0", | ||
"runtime": { | ||
"type": "docker", | ||
"settings": { | ||
"minDockerVersion": "v1.25", | ||
"loggingOptions": "", | ||
"registryCredentials": { | ||
"intelcustomvision": { | ||
"username": "$CONTAINER_REGISTRY_USERNAME", | ||
"password": "$CONTAINER_REGISTRY_PASSWORD", | ||
"address": "$CONTAINER_REGISTRY_NAME" | ||
} | ||
} | ||
} | ||
}, | ||
"systemModules": { | ||
"edgeAgent": { | ||
"type": "docker", | ||
"settings": { | ||
"image": "mcr.microsoft.com/azureiotedge-agent:1.0.9.5", | ||
"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": { | ||
"NginxModule": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"settings": { | ||
"image": "${MODULES.NginxModule.amd64}", | ||
"createOptions": { | ||
"HostConfig": { | ||
"LogConfig": { | ||
"Type": "", | ||
"Config": { | ||
"max-size": "10m", | ||
"max-file": "10" | ||
} | ||
}, | ||
"PortBindings": { | ||
"8181/tcp": [ | ||
{ | ||
"HostPort": "8181" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"WebModule": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"env": { | ||
"TRAINING_KEY": { | ||
"value": "$CUSTOM_VISION_TRAINING_KEY" | ||
}, | ||
"ENDPOINT": { | ||
"value": "$CUSTOM_VISION_ENDPOINT" | ||
}, | ||
"DBNAME": { | ||
"value": "vision_on_edge" | ||
}, | ||
"DBHOST": { | ||
"value": "172.18.0.1" | ||
}, | ||
"DBUSER": { | ||
"value": "vision_on_edge" | ||
}, | ||
"DBPASS": { | ||
"value": "vision_on_edge" | ||
}, | ||
"DF_INFERENECE_IS_GPU": { "value": false } | ||
}, | ||
"settings": { | ||
"image": "${MODULES.WebModule}", | ||
"createOptions": { | ||
"HostConfig": { | ||
"LogConfig": { | ||
"Type": "", | ||
"Config": { | ||
"max-size": "10m", | ||
"max-file": "10" | ||
} | ||
}, | ||
"PortBindings": { | ||
"8000/tcp": [ | ||
{ | ||
"HostPort": "8000" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"WebDBModule": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"env": { | ||
"POSTGRES_PASSWORD": { | ||
"value": "vision_on_edge" | ||
}, | ||
"POSTGRES_USER": { | ||
"value": "vision_on_edge" | ||
}, | ||
"POSTGRES_DB": { | ||
"value": "vision_on_edge" | ||
} | ||
}, | ||
"settings": { | ||
"image": "${MODULES.WebDBModule}", | ||
"createOptions": { | ||
"HostConfig": { | ||
"LogConfig": { | ||
"Type": "", | ||
"Config": { | ||
"max-size": "10m", | ||
"max-file": "10" | ||
} | ||
}, | ||
"PortBindings": { | ||
"5432/tcp": [ | ||
{ | ||
"HostPort": "5432" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"InferenceModule": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"env": { | ||
"IOTHUB_CONNECTION_STRING": { | ||
"value": "$IOTHUB_CONNECTION_STRING" | ||
}, | ||
"LVA_MODE": { | ||
"value": "$LVA_MODE" | ||
} | ||
}, | ||
"settings": { | ||
"image": "${MODULES.InferenceModule.vpuamd64}", | ||
"createOptions": { | ||
"HostConfig": { | ||
"LogConfig": { | ||
"Type": "", | ||
"Config": { | ||
"max-size": "10m", | ||
"max-file": "10" | ||
} | ||
}, | ||
"PortBindings": { | ||
"5000/tcp": [ | ||
{ | ||
"HostPort": "5000" | ||
} | ||
], | ||
"5558/tcp": [ | ||
{ | ||
"HostPort": "5558" | ||
} | ||
], | ||
"44000/tcp": [ | ||
{ | ||
"HostPort": "44000" | ||
} | ||
] | ||
}, | ||
"IpcMode": "host", | ||
"runtime": "runc" | ||
} | ||
} | ||
} | ||
}, | ||
"lvaEdge": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"settings": { | ||
"image": "mcr.microsoft.com/media/live-video-analytics:1", | ||
"createOptions": { | ||
"HostConfig": { | ||
"LogConfig": { | ||
"Type": "", | ||
"Config": { | ||
"max-size": "10m", | ||
"max-file": "10" | ||
} | ||
}, | ||
"IpcMode": "host" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"rtspsim": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"settings": { | ||
"image": "${MODULES.RtspSimModule}", | ||
"createOptions": { | ||
"HostConfig":{ | ||
"LogConfig": { | ||
"Type": "", | ||
"Config": { | ||
"max-size": "10m", | ||
"max-file": "10" | ||
} | ||
}, | ||
"PortBindings":{ | ||
"554/tcp":[{ | ||
"HostPort":"554" | ||
}] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"$edgeHub": { | ||
"properties.desired": { | ||
"schemaVersion": "1.0", | ||
"routes": { | ||
"metrics": "FROM /messages/modules/InferenceModule/outputs/metrics INTO $upstream", | ||
"InferenceToLVA": "FROM /messages/modules/InferenceModule/outputs/InferenceToLVA INTO BrokeredEndpoint(\"/modules/lvaEdge/inputs/recordingTrigger\")" | ||
}, | ||
"storeAndForwardConfiguration": { | ||
"timeToLiveSecs": 7200 | ||
} | ||
} | ||
}, | ||
"WebModule": { | ||
"properties.desired": {} | ||
}, | ||
"VisionSampleModule": { | ||
"properties.desired": {} | ||
}, | ||
"lvaEdge": { | ||
"properties.desired": { | ||
"applicationDataDirectory": "/var/media", | ||
"azureMediaServicesArmId": "/subscriptions/$SUBSCRIPTION_ID/resourcegroups/$RESOURCE_GROUP/providers/microsoft.media/mediaservices/$SERVICE_NAME", | ||
"aadTenantId": "$TENANT_ID", | ||
"aadServicePrincipalAppId": "$SERVICE_PRINCIPAL_APP_ID", | ||
"aadServicePrincipalSecret": "$SERVICE_PRINCIPAL_SECRET", | ||
"aadEndpoint": "https://login.microsoftonline.com", | ||
"aadResourceId": "https://management.core.windows.net/", | ||
"armEndpoint": "https://management.azure.com/", | ||
"diagnosticsEventsOutputName": "AmsDiagnostics", | ||
"operationalEventsOutputName": "AmsOperational", | ||
"logLevel": "Information", | ||
"logCategories": "Application,Events", | ||
"allowUnsecuredEndpoints": true, | ||
"telemetryOptOut": false | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.