@@ -28,69 +28,71 @@ All modules are deployed using a deployment manifest. An example manifest to de
28
28
29
29
``` json
30
30
{
31
- "modulesContent" : {
32
- "$edgeAgent" : {
33
- "properties.desired" : {
34
- "schemaVersion" : " 1.0" ,
35
- "runtime" : {
36
- "type" : " docker" ,
37
- "settings" : {
38
- "minDockerVersion" : " v1.25" ,
39
- "loggingOptions" : " " ,
40
- "registryCredentials" : {}
41
- }
42
- },
43
- "systemModules" : {
44
- "edgeAgent" : {
31
+ "content" : {
32
+ "modulesContent" : {
33
+ "$edgeAgent" : {
34
+ "properties.desired" : {
35
+ "schemaVersion" : " 1.0" ,
36
+ "runtime" : {
45
37
"type" : " docker" ,
46
38
"settings" : {
47
- "image" : " mcr.microsoft.com/azureiotedge-agent:1.0" ,
48
- "createOptions" : " "
39
+ "minDockerVersion" : " v1.25" ,
40
+ "loggingOptions" : " " ,
41
+ "registryCredentials" : {}
49
42
}
50
43
},
51
- "edgeHub" : {
52
- "type" : " docker" ,
53
- "status" : " running" ,
54
- "restartPolicy" : " always" ,
55
- "settings" : {
56
- "image" : " mcr.microsoft.com/azureiotedge-hub:1.0" ,
57
- "createOptions" : " {\" HostConfig\" :{\" PortBindings\" :{\" 5671/tcp\" :[{\" HostPort\" :\" 5671\" }], \" 8883/tcp\" :[{\" HostPort\" :\" 8883\" }],\" 443/tcp\" :[{\" HostPort\" :\" 443\" }]}}}"
58
- }
59
- }
60
- },
61
- "modules" : {
62
- "opctwin" : {
63
- "version" : " 1.0" ,
64
- "type" : " docker" ,
65
- "status" : " running" ,
66
- "restartPolicy" : " never" ,
67
- "settings" : {
68
- "image" : " mcr.microsoft.com/iotedge/opc-twin:latest" ,
69
- "createOptions" : " {\" HostConfig\" : { \" NetworkMode\" : \" host\" , \" CapAdd\" : [\" NET_ADMIN\" ] } }"
44
+ "systemModules" : {
45
+ "edgeAgent" : {
46
+ "type" : " docker" ,
47
+ "settings" : {
48
+ "image" : " mcr.microsoft.com/azureiotedge-agent:1.0" ,
49
+ "createOptions" : " "
50
+ }
51
+ },
52
+ "edgeHub" : {
53
+ "type" : " docker" ,
54
+ "status" : " running" ,
55
+ "restartPolicy" : " always" ,
56
+ "settings" : {
57
+ "image" : " mcr.microsoft.com/azureiotedge-hub:1.0" ,
58
+ "createOptions" : " {\" HostConfig\" :{\" PortBindings\" :{\" 5671/tcp\" :[{\" HostPort\" :\" 5671\" }], \" 8883/tcp\" :[{\" HostPort\" :\" 8883\" }],\" 443/tcp\" :[{\" HostPort\" :\" 443\" }]}}}"
59
+ }
70
60
}
71
61
},
72
- "opcpublisher" : {
73
- "version" : " 2.0" ,
74
- "type" : " docker" ,
75
- "status" : " running" ,
76
- "restartPolicy" : " never" ,
77
- "settings" : {
78
- "image" : " mcr.microsoft.com/iotedge/opc-publisher:latest" ,
79
- "createOptions" : " {\" Hostname\" : \" publisher\" , \" Cmd\" : [ \" publisher\" , \" --pf=./pn.json\" , \" --di=60\" , \" --to\" , \" --aa\" , \" --si=0\" , \" --ms=0\" ], \" ExposedPorts\" : { \" 62222/tcp\" : {} }, \" HostConfig\" : { \" PortBindings\" : { \" 62222/tcp\" : [{ \" HostPort\" : \" 62222\" }] } } }"
62
+ "modules" : {
63
+ "opctwin" : {
64
+ "version" : " 1.0" ,
65
+ "type" : " docker" ,
66
+ "status" : " running" ,
67
+ "restartPolicy" : " always" ,
68
+ "settings" : {
69
+ "image" : " mcr.microsoft.com/iotedge/opc-twin:latest" ,
70
+ "createOptions" : " {\" NetworkingConfig\" :{\" EndpointsConfig\" :{\" host\" :{}}},\" HostConfig\" :{\" NetworkMode\" :\" host\" ,\" CapAdd\" :[\" NET_ADMIN\" ]}}"
71
+ }
72
+ },
73
+ "opcpublisher" : {
74
+ "version" : " 2.0" ,
75
+ "type" : " docker" ,
76
+ "status" : " running" ,
77
+ "restartPolicy" : " always" ,
78
+ "settings" : {
79
+ "image" : " mcr.microsoft.com/iotedge/opc-publisher:latest" ,
80
+ "createOptions" : " {\" Hostname\" :\" publisher\" ,\" Cmd\" :[\" publisher\" ,\" --pf=./pn.json\" ,\" --di=60\" ,\" --to\" ,\" --aa\" ,\" --si=0\" ,\" --ms=0\" ],\" ExposedPorts\" :{\" 62222/tcp\" :{}},\" NetworkingConfig\" :{\" EndpointsConfig\" :{\" host\" :{}}},\" HostConfig\" :{\" NetworkMode\" :\" host\" ,\" PortBindings\" :{\" 62222/tcp\" :[{\" HostPort\" :\" 62222\" }]}}}"
81
+ }
80
82
}
81
83
}
82
84
}
83
- }
84
- },
85
- "$edgeHub " : {
86
- "properties.desired " : {
87
- "schemaVersion " : " 1.0 " ,
88
- "routes " : {
89
- "opctwinToIoTHub " : " FROM /messages/modules/opctwin/outputs/ * INTO $upstream" ,
90
- "opcpublisherToIoTHub" : " FROM /messages/modules/opcpublisher/outputs/* INTO $upstream "
91
- },
92
- "storeAndForwardConfiguration " : {
93
- "timeToLiveSecs" : 7200
85
+ },
86
+ "$edgeHub" : {
87
+ "properties.desired " : {
88
+ "schemaVersion " : " 1.0 " ,
89
+ "routes " : {
90
+ "opctwinToIoTHub " : " FROM /messages/modules/opctwin/* INTO $upstream " ,
91
+ "opcpublisherToIoTHub " : " FROM /messages/modules/opcpublisher/ * INTO $upstream"
92
+ },
93
+ "storeAndForwardConfiguration" : {
94
+ "timeToLiveSecs " : 7200
95
+ }
94
96
}
95
97
}
96
98
}
0 commit comments