Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #212 from linkernetworks/linker
Browse files Browse the repository at this point in the history
FactoryAI Update Readme, Update Installer
  • Loading branch information
initmahesh authored Oct 23, 2020
2 parents 81bc5cf + 9096dbf commit 927593c
Show file tree
Hide file tree
Showing 25 changed files with 962 additions and 330 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"createOptions": {
"HostConfig": {
"PortBindings": {
"8080/tcp": [
"8181/tcp": [
{
"HostPort": "8080"
}
Expand Down Expand Up @@ -234,4 +234,4 @@
"properties.desired": {}
}
}
}
}
307 changes: 307 additions & 0 deletions factory-ai-vision/EdgeSolution/deployment.vpu.template.json
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
}
}
}
}
Loading

0 comments on commit 927593c

Please sign in to comment.