Skip to content

Commit 2a09b36

Browse files
authored
upgrade sdk version and dotnet runtime (#44)
* upgrade sdk version and dotnet runtime * update travis
1 parent 3bff577 commit 2a09b36

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
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.0.2
2+
dotnet: 2.1
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.1.0</version>
5+
<version>2.2.0-rc</version>
66
<title>Azure IoT Edge Module</title>
77
<authors>Microsoft</authors>
88
<owners>microsoft, nugetazureiotedge</owners>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:2.0-sdk AS build-env
1+
FROM microsoft/dotnet:2.1-sdk AS build-env
22
WORKDIR /app
33

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

10-
FROM microsoft/dotnet:2.0-runtime
10+
FROM microsoft/dotnet:2.1-runtime-alpine
1111
WORKDIR /app
1212
COPY --from=build-env /app/out ./
1313

14-
RUN useradd -ms /bin/bash moduleuser
14+
RUN adduser -Ds /bin/sh moduleuser
1515
USER moduleuser
1616

1717
ENTRYPOINT ["dotnet", "SampleModule.dll"]

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 microsoft/dotnet:2.0-runtime-stretch AS base
1+
FROM microsoft/dotnet:2.1-runtime-stretch-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 microsoft/dotnet:2.0-sdk AS build-env
11+
FROM microsoft/dotnet:2.1-sdk AS build-env
1212
WORKDIR /app
1313

1414
COPY *.csproj ./
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:2.0-sdk AS build-env
1+
FROM microsoft/dotnet:2.1-sdk 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 microsoft/dotnet:2.0-runtime
10+
FROM microsoft/dotnet:2.1-runtime-nanoserver-1803
1111
WORKDIR /app
1212
COPY --from=build-env /app/out ./
1313
ENTRYPOINT ["dotnet", "SampleModule.dll"]

content/dotnet-template-azure-iot-edge-module/CSharp/SampleModule.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFramework>netcoreapp2.1</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2.0|AnyCPU'">
@@ -10,12 +10,12 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.17.0" />
14-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
15-
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.0.0" />
16-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.0.0" />
17-
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.0.0" />
18-
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.0.0" />
13+
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.18.0" />
14+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.1" />
15+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.1.1" />
16+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.1.1" />
17+
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.1.1" />
18+
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.1.1" />
1919
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.0" />
2020
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
2121
</ItemGroup>

0 commit comments

Comments
 (0)