File tree Expand file tree Collapse file tree 5 files changed +103
-6
lines changed
content/dotnet-template-azure-iot-edge-module/CSharp Expand file tree Collapse file tree 5 files changed +103
-6
lines changed Original file line number Diff line number Diff line change 33
33
"type" : " parameter" ,
34
34
"datatype" : " bool" ,
35
35
"defaultValue" : " true"
36
+ },
37
+ "target" : {
38
+ "type" : " parameter" ,
39
+ "datatype" : " choice" ,
40
+ "defaultValue" : " All" ,
41
+ "choices" : [
42
+ {
43
+ "choice" : " All"
44
+ },
45
+ {
46
+ "choice" : " Config"
47
+ }
48
+ ]
36
49
}
37
50
},
38
51
"sources" : [
45
58
],
46
59
"modifiers" : [
47
60
{
48
- "condition" : " (windows-nano)" ,
61
+ "condition" : " (windows-nano && target != 'Config' )" ,
49
62
"include" : [
50
- " Docker/windows-nano/Dockerfile "
63
+ " Docker/windows-nano/* "
51
64
]
52
65
},
53
66
{
54
- "condition" : " (linux-x64)" ,
67
+ "condition" : " (linux-x64 && target != 'Config' )" ,
55
68
"include" : [
56
- " Docker/linux-x64/Dockerfile"
69
+ " Docker/linux-x64/*"
70
+ ]
71
+ },
72
+ {
73
+ "condition" : " (target == 'Config')" ,
74
+ "exclude" : [
75
+ " *.cs" , " *.csproj" , " .gitignore"
57
76
]
58
77
}
59
78
]
60
79
}
61
80
],
62
81
"postActions" : [
63
82
{
64
- "condition" : " (!skipRestore)" ,
83
+ "condition" : " (!skipRestore && target != 'Config' )" ,
65
84
"description" : " Restore NuGet packages required by this project." ,
66
85
"manualInstructions" : [
67
86
{
Original file line number Diff line number Diff line change @@ -6,4 +6,10 @@ WORKDIR /app
6
6
7
7
COPY $EXE_DIR/ ./
8
8
9
+ RUN apt-get update
10
+
11
+ RUN apt-get install -y unzip procps
12
+
13
+ RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
14
+
9
15
CMD ["dotnet" , "SampleModule.dll" ]
Original file line number Diff line number Diff line change
1
+ FROM microsoft/dotnet:2.0.0-runtime
2
+
3
+ ARG EXE_DIR=.
4
+
5
+ WORKDIR /app
6
+
7
+ COPY $EXE_DIR/ ./
8
+
9
+ RUN apt-get update
10
+
11
+ RUN apt-get install -y unzip procps
12
+
13
+ RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
14
+
15
+ CMD ["dotnet", "SampleModule.dll"]
Original file line number Diff line number Diff line change 10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" Microsoft.Azure.Devices.Client" Version =" 1.6.0-preview-003 " />
13
+ <PackageReference Include =" Microsoft.Azure.Devices.Client" Version =" 1.6.0-preview-004 " />
14
14
<PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 2.0.0-preview2-final" />
15
15
<PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 2.0.0-preview2-final" />
16
16
<PackageReference Include =" Microsoft.Extensions.Configuration.Binder" Version =" 2.0.0-preview2-final" />
Original file line number Diff line number Diff line change
1
+ {
2
+ "moduleContent" : {
3
+ "$edgeAgent" : {
4
+ "properties.desired" : {
5
+ "schemaVersion" : " 1.0" ,
6
+ "runtime" : {
7
+ "type" : " docker" ,
8
+ "settings" : {
9
+ "minDockerVersion" : " v1.25" ,
10
+ "loggingOptions" : " "
11
+ }
12
+ },
13
+ "systemModules" : {
14
+ "edgeAgent" : {
15
+ "type" : " docker" ,
16
+ "settings" : {
17
+ "image" : " edgepreview.azurecr.io/azureiotedge/edge-agent:1.0-preview" ,
18
+ "createOptions" : " "
19
+ }
20
+ },
21
+ "edgeHub" : {
22
+ "type" : " docker" ,
23
+ "status" : " running" ,
24
+ "restartPolicy" : " always" ,
25
+ "settings" : {
26
+ "image" : " edgepreview.azurecr.io/azureiotedge/edge-hub:1.0-preview" ,
27
+ "createOptions" : " "
28
+ }
29
+ }
30
+ },
31
+ "modules" : {
32
+ "SampleModule" : {
33
+ "version" : " 1.0" ,
34
+ "type" : " docker" ,
35
+ "status" : " running" ,
36
+ "restartPolicy" : " always" ,
37
+ "settings" : {
38
+ "image" : " <dockeruser>/<image>:<tag>" ,
39
+ "createOptions" : " {}"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ },
45
+ "$edgeHub" : {
46
+ "properties.desired" : {
47
+ "schemaVersion" : " 1.0" ,
48
+ "routes" : {
49
+ "route" : " FROM /* INTO $upstream"
50
+ },
51
+ "storeAndForwardConfiguration" : {
52
+ "timeToLiveSecs" : 10
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
You can’t perform that action at this time.
0 commit comments