Skip to content

Commit

Permalink
Update Dockerfile and Readme for DotNetCore 5.0.202 with SonarScanner…
Browse files Browse the repository at this point in the history
… 5.2.0
  • Loading branch information
gafda committed Apr 12, 2021
1 parent 731b688 commit 93668b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.407
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.0.29862 \
DOTNETCORE_SDK=3.1.407 \
DOTNETCORE_RUNTIME=3.1.13 \
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 \
Expand Down Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ It also allows you to run Docker in Docker using a docker.sock mount.

This latest image was built with the following components:

* dotnetcore-sdk 5.0.102
* dotnetcore-runtime 5.0.2 (required by Sonar-Scanner)
* dotnetcore-sdk 5.0.202
* dotnetcore-runtime 5.0.5 (required by Sonar-Scanner)
* SonarQube MSBuild Scanner 5.2.0.29862
* Docker binaries 20.10.x (for running Docker in Docker using the docker.sock mount)
* OpenJDK Java Runtime 11 (required by Sonar-Scanner)
Expand All @@ -26,12 +26,13 @@ This latest image was built with the following components:

> Tags are written using the following pattern: `dotnet-sonar:<year>.<month>.<revision>`
* `21.04.1`, `latest` [(21.04.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.04.1/Dockerfile)
* DotNet 5.0.202
* SonarScanner 5.2.0.29862
* `21.04.0` [(21.04.0/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.04.0/Dockerfile)
* DotNetCore 3.1.407
* SonarScanner 5.2.0.29862
* `21.01.1`, `latest` [(21.01.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.01.1/Dockerfile)
* DotNet 5.0.102
* SonarScanner 5.0.4.24009
* `21.01.1` [(21.01.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.01.1/Dockerfile)
* `21.01.0` [(21.01.0/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/21.01.0/Dockerfile)
* `20.12.2` [(20.12.2/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/20.12.2/Dockerfile)
* `20.12.1` [(20.12.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/20.12.1/Dockerfile)
Expand Down

0 comments on commit 93668b7

Please sign in to comment.