From 1b8417fb81addbebaee17eb0c42588b1384a35a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gil=20Assun=C3=A7=C3=A3o?= Date: Wed, 5 May 2021 11:37:28 +0100 Subject: [PATCH] Update Dockerfile and Readme for DotNetCore 5.0.202 with SonarScanner 5.2.1 --- Dockerfile | 14 +++++++------- README.md | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6712bd6..0361edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:3.1.408 +FROM mcr.microsoft.com/dotnet/sdk:5.0.202 # Dockerfile meta-information LABEL maintainer="NOS Inovação S.A." \ app_name="dotnet-sonar" ENV SONAR_SCANNER_MSBUILD_VERSION=5.2.1.31210 \ - DOTNETCORE_SDK=3.1.408 \ - DOTNETCORE_RUNTIME=3.1.14 \ - NETCOREAPP_VERSION=netcoreapp3.0 \ + DOTNETCORE_SDK=5.0.202 \ + DOTNETCORE_RUNTIME=5.0.5 \ + NETAPP_VERSION=net5.0 \ DOCKER_VERSION=5:20.10.6~3-0~debian-buster \ CONTAINERD_VERSION=1.4.4-1 \ OPENJDK_VERSION=11 \ @@ -48,9 +48,9 @@ RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \ # Install Sonar Scanner RUN apt-get install -y unzip \ - && wget https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/$SONAR_SCANNER_MSBUILD_VERSION/sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETCOREAPP_VERSION.zip \ - && unzip sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETCOREAPP_VERSION.zip -d /sonar-scanner \ - && rm sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETCOREAPP_VERSION.zip \ + && wget https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/$SONAR_SCANNER_MSBUILD_VERSION/sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETAPP_VERSION.zip \ + && unzip sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETAPP_VERSION.zip -d /sonar-scanner \ + && rm sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETAPP_VERSION.zip \ && chmod +x -R /sonar-scanner # Cleanup diff --git a/README.md b/README.md index 09adf2e..b89b16c 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ This latest image was built with the following components: * `21.05.1`, `latest` [(21.05.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.05.1/Dockerfile) * DotNet 5.0.202 - * SonarScanner 5.2.0.29862 + * SonarScanner 5.2.1.31210 * `21.05.0` [(21.05.0/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.05.0/Dockerfile) * DotNetCore 3.1.408 - * SonarScanner 5.2.0.29862 + * SonarScanner 5.2.1.31210 * `21.04.1` [(21.04.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.04.1/Dockerfile) * `21.04.0` [(21.04.0/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.04.0/Dockerfile) * `21.01.1` [(21.01.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.01.1/Dockerfile)