Skip to content

Commit 4cbbf09

Browse files
Merge arm64-preview feature to master (#74)
Co-authored-by: Jun Han <[email protected]>
1 parent b07e49d commit 4cbbf09

22 files changed

+89
-28
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: csharp
2-
dotnet: 2.1
2+
dotnet: 3.0
33
mono: alpha
44
before_install:
55
- mkdir -p .nuget

Microsoft.Azure.IoT.Edge.Module.nuspec

Lines changed: 1 addition & 1 deletion
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>2.7.0</version>
5+
<version>3.1.0-RC</version>
66
<title>Azure IoT Edge Module</title>
77
<authors>Microsoft</authors>
88
<owners>microsoft, nugetazureiotedge</owners>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The template will set up all necessary files for you to focus on functionality p
99

1010
## Get Started
1111

12-
Make sure you have [.Net Core 2.0 SDK](https://www.microsoft.com/net/download/core) installed.
12+
Make sure you have [.Net Core 3.0 SDK](https://dotnet.microsoft.com/download/dotnet-core/3.0) installed.
1313

1414
Run `dotnet` command to install the template:
1515

Test/Test.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void TestArchitecture(string lang, bool skipRestore)
5555
{
5656
var repository = "test.azurecr.io/test";
5757
var scaffoldName = BeforeEach(lang, repository, skipRestore);
58-
var filesToCheck = new List<string> { ".gitignore", "module.json", "Dockerfile.amd64", "Dockerfile.amd64.debug", "Dockerfile.arm32v7", "Dockerfile.arm32v7.debug", "Dockerfile.windows-amd64", ".dockerignore" };
58+
var filesToCheck = new List<string> { ".gitignore", "module.json", "Dockerfile.amd64", "Dockerfile.amd64.debug", "Dockerfile.arm32v7", "Dockerfile.arm32v7.debug", "Dockerfile.windows-amd64", "Dockerfile.arm64v8", ".dockerignore" };
5959

6060
if (skipRestore)
6161
{
@@ -68,7 +68,7 @@ public void TestArchitecture(string lang, bool skipRestore)
6868

6969
if (lang == CSharp)
7070
{
71-
filesToCheck.AddRange(new List<string> { "Program.cs", scaffoldName + ".csproj" });
71+
filesToCheck.AddRange(new List<string> { "Program.cs", scaffoldName + ".csproj", "Dockerfile.arm64v8.debug" });
7272
}
7373
if (lang == FSharp)
7474
{

Test/Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

content/dotnet-template-azure-iot-edge-module/CSharp/Dockerfile.amd64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS build-env
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build-env
22
WORKDIR /app
33

44
COPY *.csproj ./
@@ -7,7 +7,7 @@ RUN dotnet restore
77
COPY . ./
88
RUN dotnet publish -c Release -o out
99

10-
FROM mcr.microsoft.com/dotnet/core/runtime:2.1-stretch-slim
10+
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim
1111
WORKDIR /app
1212
COPY --from=build-env /app/out ./
1313

content/dotnet-template-azure-iot-edge-module/CSharp/Dockerfile.amd64.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/runtime:2.1-stretch-slim AS base
1+
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS base
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends unzip procps && \
@@ -8,7 +8,7 @@ RUN useradd -ms /bin/bash moduleuser
88
USER moduleuser
99
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
1010

11-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS build-env
11+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build-env
1212
WORKDIR /app
1313

1414
COPY *.csproj ./

content/dotnet-template-azure-iot-edge-module/CSharp/Dockerfile.arm32v7

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS build-env
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster-arm32v7 AS build-env
22
WORKDIR /app
33

44
COPY *.csproj ./
@@ -7,7 +7,7 @@ RUN dotnet restore
77
COPY . ./
88
RUN dotnet publish -c Release -o out
99

10-
FROM mcr.microsoft.com/dotnet/core/runtime:2.1-stretch-slim-arm32v7
10+
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim-arm32v7
1111
WORKDIR /app
1212
COPY --from=build-env /app/out ./
1313

content/dotnet-template-azure-iot-edge-module/CSharp/Dockerfile.arm32v7.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/runtime:2.1-stretch-slim-arm32v7 AS base
1+
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim-arm32v7 AS base
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends unzip procps && \
@@ -8,7 +8,7 @@ RUN useradd -ms /bin/bash moduleuser
88
USER moduleuser
99
RUN curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
1010

11-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS build-env
11+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster-arm32v7 AS build-env
1212
WORKDIR /app
1313

1414
COPY *.csproj ./
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster-arm64v8 AS build-env
2+
WORKDIR /app
3+
4+
COPY *.csproj ./
5+
RUN dotnet restore
6+
7+
COPY . ./
8+
RUN dotnet publish -c Release -o out
9+
10+
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim-arm64v8
11+
WORKDIR /app
12+
COPY --from=build-env /app/out ./
13+
14+
RUN useradd -ms /bin/bash moduleuser
15+
USER moduleuser
16+
17+
ENTRYPOINT ["dotnet", "SampleModule.dll"]

0 commit comments

Comments
 (0)