Skip to content

Commit

Permalink
Update dotnetcore to 3.0.0-preview5 on Linux ARM64 and 2.1.10 for all…
Browse files Browse the repository at this point in the history
… other (#1168)

Update to dotnet core version
  • Loading branch information
ancaantochi authored May 7, 2019
1 parent 1779fca commit ad345ef
Show file tree
Hide file tree
Showing 58 changed files with 87 additions and 79 deletions.
2 changes: 1 addition & 1 deletion builds/misc/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
displayName: Install .NET Core
inputs:
packageType: sdk
version: 3.0.100-preview-010184
version: 3.0.100-preview5-011568

- bash: 'docker login $(registry.address) --username $(registry.user) --password $(registry.password)'
displayName: 'Docker Login'
Expand Down
4 changes: 2 additions & 2 deletions edge-agent/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG base_tag=2.1.6-runtime-alpine3.7
ARG base_tag=2.1.10-alpine3.7
FROM azureiotedge/azureiotedge-runtime-base:1.0.0-preview001-linux-amd64 as builder

FROM microsoft/dotnet:${base_tag}
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
2 changes: 1 addition & 1 deletion edge-agent/docker/linux/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-agent-base:${base_tag}

ARG EXE_DIR=.
Expand Down
4 changes: 2 additions & 2 deletions edge-agent/docker/linux/arm32v7/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-bionic-arm32v7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-bionic-arm32v7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

RUN apt-get update && \
apt-get install -y libsnappy1v5 && \
Expand Down
2 changes: 1 addition & 1 deletion edge-agent/docker/linux/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8

FROM azureiotedge/azureiotedge-agent-base:${base_tag}

Expand Down
2 changes: 1 addition & 1 deletion edge-agent/docker/linux/arm64v8/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=3.0-bionic-arm64v8
ARG base_tag=3.0.0-preview5-bionic-arm64v8
ARG num_procs=4

FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}
Expand Down
4 changes: 2 additions & 2 deletions edge-agent/docker/windows/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

USER ContainerAdministrator

Expand Down
2 changes: 1 addition & 1 deletion edge-agent/docker/windows/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-agent-base:${base_tag}

Expand Down
4 changes: 2 additions & 2 deletions edge-agent/docker/windows/arm32v7/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Base image for arm32v7 dotnet-runtime container
FROM mcr.microsoft.com/windows/nanoserver:1809_arm
FROM mcr.microsoft.com/windows/nanoserver:1809-arm32v7

ENV DOTNET_VERSION 2.1.6
ENV DOTNET_VERSION 2.1.10
ENV DOTNET_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-${DOTNET_VERSION}-win-arm.zip

RUN curl -SL %DOTNET_DOWNLOAD_URL% --output dotnet.zip \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public void ConfigureServices(IServiceCollection services)
services.AddSingleton<IController, EdgeletTestImplementation>();
}

// TODO: Remove warning disable for Obsolete when project is moved to dotnetcore 3.0
#pragma warning disable 612, 618
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
Expand All @@ -33,5 +35,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)

app.UseMvc();
}
#pragma warning restore 612, 618
}
}
4 changes: 2 additions & 2 deletions edge-hub/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG base_tag=2.1.6-runtime-alpine3.7
ARG base_tag=2.1.10-alpine3.7
FROM azureiotedge/azureiotedge-runtime-base:1.0.0-preview001-linux-amd64 as builder

FROM microsoft/dotnet:${base_tag}
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
2 changes: 1 addition & 1 deletion edge-hub/docker/linux/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-hub-base:${base_tag}

ARG EXE_DIR=.
Expand Down
4 changes: 2 additions & 2 deletions edge-hub/docker/linux/arm32v7/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-bionic-arm32v7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-bionic-arm32v7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

# Add an unprivileged user account for running Edge Hub
ARG EDGEHUBUSER_ID=1000
Expand Down
2 changes: 1 addition & 1 deletion edge-hub/docker/linux/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-hub-base:${base_tag}

ARG EXE_DIR=.
Expand Down
2 changes: 1 addition & 1 deletion edge-hub/docker/linux/arm64v8/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=3.0-bionic-arm64v8
ARG base_tag=3.0.0-preview5-bionic-arm64v8
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

# Add an unprivileged user account for running Edge Hub
Expand Down
4 changes: 2 additions & 2 deletions edge-hub/docker/windows/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
2 changes: 1 addition & 1 deletion edge-hub/docker/windows/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.1-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-hub-base:${base_tag}

Expand Down
4 changes: 2 additions & 2 deletions edge-hub/docker/windows/arm32v7/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Base image for arm32v7 dotnet-runtime container
FROM mcr.microsoft.com/windows/nanoserver:1809_arm
FROM mcr.microsoft.com/windows/nanoserver:1809-arm32v7

ENV DOTNET_VERSION 2.1.6
ENV DOTNET_VERSION 2.1.10
ENV DOTNET_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-${DOTNET_VERSION}-win-arm.zip

RUN curl -SL %DOTNET_DOWNLOAD_URL% --output dotnet.zip \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class Startup : IStartup

// ReSharper disable once UnusedParameter.Local
public Startup(
IHostingEnvironment env,
IConfigurationRoot configuration,
IDependencyManager dependencyManager)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-module-base:${base_tag}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-module-base:${base_tag}

Expand Down
4 changes: 2 additions & 2 deletions edge-modules/DirectMethodSender/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-module-base:${base_tag}

Expand Down
3 changes: 3 additions & 0 deletions edge-modules/MessagesAnalyzer/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public void ConfigureServices(IServiceCollection services)
services.AddMvc();
}

// TODO: Remove warning disable for Obsolete when project is moved to dotnetcore 3.0
#pragma warning disable 612, 618
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
Expand All @@ -31,5 +33,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)

app.UseMvc();
}
#pragma warning restore 612, 618
}
}
4 changes: 2 additions & 2 deletions edge-modules/MessagesAnalyzer/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
4 changes: 2 additions & 2 deletions edge-modules/MessagesAnalyzer/docker/windows/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-module-base:${base_tag}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-bionic-arm32v7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-bionic-arm32v7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

# Add an unprivileged user account for running the module
RUN useradd -ms /bin/bash moduleuser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=3.0-bionic-arm64v8
ARG base_tag=3.0.0-preview5-bionic-arm64v8
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

# Add an unprivileged user account for running the module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-module-base:${base_tag}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Base image for arm32v7 dotnet-runtime container
FROM mcr.microsoft.com/windows/nanoserver:1809_arm
FROM mcr.microsoft.com/windows/nanoserver:1809-arm32v7

ENV DOTNET_VERSION 2.1.6
ENV DOTNET_VERSION 2.1.10
ENV DOTNET_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-${DOTNET_VERSION}-win-arm.zip

RUN curl -SL %DOTNET_DOWNLOAD_URL% --output dotnet.zip \
Expand Down
4 changes: 2 additions & 2 deletions edge-modules/TemperatureFilter/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm32v7
ARG base_tag=1.0.0-preview013-linux-arm32v7
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-preview012-linux-arm64v8
ARG base_tag=1.0.0-preview014-linux-arm64v8
FROM azureiotedge/azureiotedge-module-base:${base_tag}

ARG EXE_DIR=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-nanoserver-1809
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-nanoserver-1809
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG base_tag=1.0.0-windows-arm32v7
ARG base_tag=1.0.2-windows-arm32v7
ARG base_registry
FROM ${base_registry}/azureiotedge/azureiotedge-module-base:${base_tag}

Expand Down
4 changes: 2 additions & 2 deletions edge-modules/load-gen/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.6-runtime-alpine3.7
FROM microsoft/dotnet:${base_tag}
ARG base_tag=2.1.10-alpine3.7
FROM mcr.microsoft.com/dotnet/core/runtime:${base_tag}

ARG EXE_DIR=.

Expand Down
Loading

0 comments on commit ad345ef

Please sign in to comment.