Skip to content

Instantly share code, notes, and snippets.

@mitchross
Created February 5, 2020 01:05
Show Gist options
  • Save mitchross/974c6e8e3b73f2b62bd878f5a2c817da to your computer and use it in GitHub Desktop.
Save mitchross/974c6e8e3b73f2b62bd878f5a2c817da to your computer and use it in GitHub Desktop.
{
"modulesContent": {
"$edgeAgent": {
"properties.desired": {
"schemaVersion": "1.0",
"runtime": {
"type": "docker",
"settings": {
"minDockerVersion": "v1.25",
"loggingOptions": "",
"registryCredentials": {}
}
},
"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": {
"NVIDIADeepStreamSDK": {
"version": "1.1",
"type": "docker",
"status": "running",
"restartPolicy": "always",
"settings": {
"image": "marketplace.azurecr.io/nvidia/deepstream-iot-l4t:latest",
"createOptions": "{\"Entrypoint\":[\"/usr/bin/deepstream-test5-app\",\"-c\",\"/opt/nvidia/deepstream/deepstream-4.0/samples/configs/deepstream-app/source4_usb_rtsp_dec_infer_resnet_int8.txt\",\"-p\",\"1\",\"-m\",\"1\"],\"HostConfig\":{\"runtime\":\"nvidia\",\"Binds\":[\"/opt/nvidia/deepstream/deepstream-4.0/samples:/opt/nvidia/deepstream/deepstream-4.0/samples\",\"/run/systemd:/run/systemd\",\"/var/run/docker.sock:/var/run/docker.sock\"]},\"WorkingDir\":\"/root/deepstream_sdk_v4.0.2_jetson/sources/apps/sample_apps/deepstream-test5/configs/\"}"
}
},
"NVIDIANanoIotCModule": {
"settings": {
"image": "toolboc/nvidia-nano-iotc-module",
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"9014/tcp\":[{\"HostPort\":\"9014\"}]},\"Binds\":[\"/data/misc:/data/misc\",\"/run/systemd:/run/systemd\",\"/var/run/docker.sock:/var/run/docker.sock\"]}}"
},
"type": "docker",
"env": {
"DEBUG_TELEMETRY": {
"value": "1"
}
},
"status": "running",
"restartPolicy": "always",
"version": "1.0"
}
}
}
},
"$edgeHub": {
"properties.desired": {
"schemaVersion": "1.0",
"routes": {
"DeepstreamToFilter": "FROM /messages/modules/NVIDIADeepStreamSDK/outputs/* INTO BrokeredEndpoint(\"/modules/NVIDIANanoIotCModule/inputs/dsmessages\")",
"filterToIoTHub": "FROM /messages/* INTO $upstream"
},
"storeAndForwardConfiguration": {
"timeToLiveSecs": 7200
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment