Skip to content

Commit

Permalink
Update SonarScanner to v4.7.1 and DotNetCore SDK to v3.0.100
Browse files Browse the repository at this point in the history
  • Loading branch information
gafda committed Oct 2, 2019
1 parent 5c4d45f commit 1a22703
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 13 deletions.
25 changes: 17 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.2.402
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100

# reviewing this choice
ENV SONAR_SCANNER_MSBUILD_VERSION 4.7.1.2311

ENV DOCKER_VERSION 5:19.03.2~3-0~debian-stretch
ENV DOCKER_VERSION 5:19.03.2~3-0~debian-buster
ENV CONTAINERD_VERSION 1.2.6-3

# Install Java 8
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y openjdk-8-jre
RUN apt-get update \
&& apt-get dist-upgrade -y

# Install docker binaries
# Install all necessary additional software (utils, jre, docker binaries)
RUN apt-get install -y \
openjdk-11-jre \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
gnupg-agent \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& apt-key fingerprint 0EBFCD88 \
Expand All @@ -23,10 +24,18 @@ RUN apt-get install -y \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& apt-get install -y docker-ce=$DOCKER_VERSION docker-ce-cli=$DOCKER_VERSION containerd.io=$CONTAINERD_VERSION
&& apt-get install -y \
docker-ce=$DOCKER_VERSION \
docker-ce-cli=$DOCKER_VERSION \
containerd.io=$CONTAINERD_VERSION

# install nodejs
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - && apt-get install -y nodejs autoconf libtool nasm
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - \
&& apt-get install -y \
nodejs \
autoconf \
libtool \
nasm

# Install Sonar Scanner
RUN apt-get install -y unzip \
Expand Down
45 changes: 40 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,64 @@ This is a container used to build dotnet projects and provide SonarQube analysis
It also allows you to run Docker in Docker using a docker.sock mount.

----
This image was built with the following components:
This latest image was built with the following components:

* dotnet-sdk-2.2.402 (stretch)
* dotnet-sdk-3.0.100
* SonarQube MSBuild Scanner 4.7.1.2311
* OpenJDK Java 8 (required for Sonar Scanner)
* OpenJDK Java 11 (required by Sonar Scanner)
* Docker binaries 19.03.1 (for running Docker in Docker using the docker.sock mount)
* nodejs 11
* NodeJS 11

[![Docker Build Status](https://img.shields.io/docker/build/nosinovacao/dotnet-sonar.svg)](dotnet-sonar)

## Tags

Tags are written using the following pattern: `dotnet-sonar:<year>.<month>.<revision>`

* dotnet-soanr:19.10.0
* With:
* DotNetCore SDK 3.0.100
* SonarScanner 4.7.1.2311
* dotnet-sonar:19.09.0
* With:
* DotNetCore SDK 2.2.402
* SonarScanner 4.7.1.2311
* dotnet-sonar:19.08.0
* With:
* DotNetCore SDK 2.2.401
* SonarScanner 4.6.2.2108
* dotnet-sonar:19.01.0
* With:
* DotNetCore SDK 2.2.103
* SonarScanner 4.5.0.1761
* dotnet-sonar:18.12.1
* With:
* DotNetCore SDK 2.2.100
* SonarScanner 4.4.2.1543
* dotnet-sonar:18.09.0
* With:
* DotNetCore SDK 2.1.401
* SonarScanner 4.3.1.1372
* dotnet-sonar:18.07.0
* With:
* DotNetCore SDK 2.1
* SonarScanner 4.3.1.1372
* dotnet-sonar:18.05.0
* With:
* DotNetCore SDK 2.0.7
* SonarScanner 4.2.0.1214
* dotnet-sonar:18.03.1
* With:
* DotNetCore SDK 2.0
* SonarScanner 4.1.0.1148
* dotnet-sonar:18.03.0
* With:
* DotNetCore SDK 2.0
* SonarScanner 4.0.2.892
* dotnet-sonar:2-4.0.2
* With:
* DotNetCore SDK 2
* SonarScanner 4.0.2.892

More info on docker hub: <https://hub.docker.com/r/nosinovacao/dotnet-sonar/>

Expand Down Expand Up @@ -71,7 +106,7 @@ Advance Usage:
docker run -it --rm \
-v <my-project-source-path>:/source \
-v <my-nugetconfig-source-path>:/nuget \
dotnet-sonar:19.09.0 \
dotnet-sonar:19.10.0 \
bash -c \
"cd source \
&& dotnet /sonar-scanner/SonarScanner.MSBuild.dll begin \
Expand Down

0 comments on commit 1a22703

Please sign in to comment.