Skip to content

Commit

Permalink
Updated dotnet 6 image
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimesantosferreira committed Nov 24, 2022
1 parent a84224b commit 2c37312
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0
FROM mcr.microsoft.com/dotnet/sdk:6.0.403

# Dockerfile meta-information
LABEL maintainer="NOS Inovação S.A." \
app_name="dotnet-sonar"

ENV SONAR_SCANNER_MSBUILD_VERSION=5.8.0.52797 \
DOTNETCORE_SDK=7.0 \
DOTNETCORE_RUNTIME=7.0 \
DOTNETCORE_SDK=6.0.403 \
DOTNETCORE_RUNTIME=6.0.11 \
NETAPP_VERSION=net5.0 \
DOCKER_VERSION=5:20.10.17~3-0~debian-bullseye \
CONTAINERD_VERSION=1.6.6-1 \
DOCKER_VERSION=5:20.10.21~3-0~debian-bullseye \
CONTAINERD_VERSION=1.6.10-1 \
OPENJDK_VERSION=11 \
NODEJS_VERSION=16

Expand All @@ -21,6 +21,7 @@ RUN apt-get update \
ca-certificates \
curl \
gnupg-agent \
lsb-release \
software-properties-common

RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1
Expand All @@ -34,12 +35,11 @@ RUN wget https://deb.nodesource.com/setup_$NODEJS_VERSION.x \
&& apt-get install -y nodejs

# Install all necessary additional software
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& apt-key fingerprint 0EBFCD88 \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y \
docker-ce=$DOCKER_VERSION \
Expand Down
9 changes: 5 additions & 4 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 7.0
* dotnetcore-runtime 7.0 (required by Sonar-Scanner)
* dotnetcore-sdk 6.0.403
* dotnetcore-runtime 6.0.11 (required by Sonar-Scanner)
* SonarQube MSBuild Scanner 5.8.0.52797
* Docker binaries 20.10.x (for running Docker in Docker using the docker.sock mount)
* OpenJDK Java Runtime 11 (required by Sonar-Scanner and some Sonar-Scanner plugins)
Expand All @@ -26,13 +26,14 @@ This latest image was built with the following components:

> Tags are written using the following pattern: `dotnet-sonar:<year>.<month>.<revision>`
* `22.07.3`, `latest6`, `latest` [(22.10.3/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/22.10.3/Dockerfile)
* `22.11.3`, `latest6`, `latest` [(22.11.3/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/22.11.3/Dockerfile)
* DotNet 6.0.402
* SonarScanner 5.8.0.52797
> :warning: **[(THIS VERSION HAS REACHED END OF LIFE)](https://dotnet.microsoft.com/en-us/download/dotnet/5.0)**
* `22.07.1`, `latest5` [(22.07.1/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/22.07.1/Dockerfile)
* DotNet 5.0.408
* SonarScanner 5.7.1.49528
* `22.10.3` [(22.10.3/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/22.10.3/Dockerfile)
* `22.07.3` [(22.07.3/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/22.07.3/Dockerfile)
* `22.07.0`, `latest31` [(22.07.0/Dockerfile)](https://github.com/nosinovacao/dotnet-sonar/blob/22.07.0/Dockerfile)
* DotNetCore 3.1.420
Expand Down Expand Up @@ -224,4 +225,4 @@ The above examples already implement the code-coverage analysis, **provided you

If you want to know more, check: <https://dev.to/deinsoftware/net-core-unit-test-and-code-coverage-with-visual-studio-code-37bp>.

Also, coverlet documentation here: <https://github.com/tonerdo/coverlet/>.
Also, coverlet documentation here: <https://github.com/tonerdo/coverlet/>.

0 comments on commit 2c37312

Please sign in to comment.