Skip to content

Commit 11d82d1

Browse files
author
Qingqing Sun
committed
let user decide module name, add windows nano docker file
1 parent 26cf979 commit 11d82d1

File tree

4 files changed

+66
-19
lines changed

4 files changed

+66
-19
lines changed

Microsoft.Azure.IoT.Edge.Module.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>Microsoft.Azure.IoT.Edge.Module</id>
5-
<version>0.2.0</version>
5+
<version>0.3.0</version>
66
<title>Azure IoT Edge Module</title>
77
<authors>Microsoft</authors>
88
<owners>microsoft, nugetazureiotedge</owners>
@@ -15,6 +15,6 @@
1515
<tags>azure iot edge dotnet template</tags>
1616
</metadata>
1717
<files>
18-
<file src="./content/**/*" />
18+
<file src="content/**/*" />
1919
</files>
2020
</package>
Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"author": "Summer Sun",
3-
"classifications": ["Console"],
3+
"classifications": [
4+
"Console"
5+
],
46
"name": "Azure IoT Edge Module",
57
"identity": "Azure.IoT.Edge.Module.CSharp",
68
"groupIdentity": "Azure.IoT.Edge.Module",
@@ -9,10 +11,13 @@
911
"language": "C#",
1012
"type": "project"
1113
},
14+
"sourceName": "SampleModule",
1215
"preferNameDirectory": "true",
13-
"primaryOutputs": [{
14-
"path": ""
15-
}],
16+
"primaryOutputs": [
17+
{
18+
"path": ""
19+
}
20+
],
1621
"symbols": {
1722
"skipRestore": {
1823
"type": "parameter",
@@ -23,18 +28,47 @@
2328
"type": "parameter",
2429
"datatype": "bool",
2530
"defaultValue": "true"
31+
},
32+
"windows-nano": {
33+
"type": "parameter",
34+
"datatype": "bool",
2635
}
2736
},
28-
"sources": [{
29-
"exclude": [".template.config/*", "bin/**/*", "obj/**/*"]
30-
}],
31-
"postActions": [{
32-
"condition": "(!skipRestore)",
33-
"description": "Restore NuGet packages required by this project.",
34-
"manualInstructions": [{
35-
"text": "Run 'dotnet restore -s https://www.myget.org/F/aziot-device-sdk/api/v3/index.json'"
36-
}],
37-
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
38-
"continueOnError": true
39-
}]
40-
}
37+
"sources": [
38+
{
39+
"exclude": [
40+
".template.config/*",
41+
"Docker/**/*",
42+
"bin/**/*",
43+
"obj/**/*"
44+
],
45+
"modifiers": [
46+
{
47+
"condition": "(windows-nano)",
48+
"include": [
49+
"Docker/windows-nano/Dockerfile"
50+
]
51+
},
52+
{
53+
"condition": "(linux-x64)",
54+
"include": [
55+
"Docker/linux-x64/Dockerfile"
56+
]
57+
}
58+
]
59+
}
60+
],
61+
"postActions": [
62+
{
63+
"condition": "(!skipRestore)",
64+
"description": "Restore NuGet packages required by this project.",
65+
"manualInstructions": [
66+
{
67+
"text": "Run 'dotnet restore -s https://www.myget.org/F/aziot-device-sdk/api/v3/index.json'"
68+
}
69+
],
70+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
71+
"continueOnError": true
72+
}
73+
]
74+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM microsoft/dotnet:2.0.0-runtime
2+
23
ARG EXE_DIR=.
4+
35
WORKDIR /app
6+
47
COPY $EXE_DIR/ ./
8+
59
CMD ["dotnet", "SampleModule.dll"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM microsoft/dotnet:2.0.0-runtime-nanoserver-1709
2+
3+
ARG EXE_DIR=.
4+
5+
WORKDIR /app
6+
7+
COPY $EXE_DIR/ ./
8+
9+
CMD ["dotnet", ".dll"]

0 commit comments

Comments
 (0)