Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 17:58:35 +08:00
commit 2448fbf2fb
25 changed files with 2940 additions and 0 deletions

View File

@@ -0,0 +1,111 @@
{
"modulesContent": {
"$edgeAgent": {
"properties.desired": {
"schemaVersion": "1.1",
"modules": {},
"runtime": {
"type": "docker",
"settings": {
"minDockerVersion": "v1.25",
"registryCredentials": {
"registryName": {
"username": "${ContainerRegistryUserName}",
"password": "${ContainerRegistryPassword}",
"address": "${ContainerRegistryLoginServer}"
}
}
}
},
"systemModules": {
"edgeAgent": {
"imagePullPolicy": "on-create",
"type": "docker",
"env": {
"storageFolder": {
"value": "/aziot/storage/"
},
"UpstreamProtocol": {
"value": "AMQPWS"
}
},
"settings": {
"image": "mcr.microsoft.com/azureiotedge-agent:1.5",
"createOptions": {
"HostConfig": {
"Binds": [
"/etc/aziot/storage/:/aziot/storage/"
],
"LogConfig": {
"Type": "json-file",
"Config": {
"max-size": "10m",
"max-file": "10"
}
}
}
}
}
},
"edgeHub": {
"imagePullPolicy": "on-create",
"type": "docker",
"env": {
"storageFolder": {
"value": "/aziot/storage/"
},
"UpstreamProtocol": {
"value": "AMQPWS"
}
},
"status": "running",
"restartPolicy": "always",
"startupOrder": 0,
"settings": {
"image": "mcr.microsoft.com/azureiotedge-hub:1.5",
"createOptions": {
"HostConfig": {
"Binds": [
"/etc/aziot/storage/:/aziot/storage/"
],
"LogConfig": {
"Type": "json-file",
"Config": {
"max-size": "10m",
"max-file": "10"
}
},
"PortBindings": {
"5671/tcp": [
{
"HostPort": "5671"
}
],
"8883/tcp": [
{
"HostPort": "8883"
}
],
"443/tcp": [
{
"HostPort": "443"
}
]
}
}
}
}
}
}
}
},
"$edgeHub": {
"properties.desired": {
"schemaVersion": "1.1",
"storeAndForwardConfiguration": {
"timeToLiveSecs": 86400
}
}
}
}
}