From 475758bc74bcb05ae38c681767aeda8605bc6fe8 Mon Sep 17 00:00:00 2001 From: Burak Ince Date: Sun, 1 Apr 2018 22:23:41 +0200 Subject: [PATCH] Update OS version to Debian 9 and Java version to 8u162 --- Dockerfile | 6 +++--- README.md | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8e86ad..ca38249 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM java:openjdk-8-jre +FROM openjdk:8u162-jre-stretch MAINTAINER Burak Ince @@ -12,7 +12,7 @@ ENV SONAR_SCANNER_MSBUILD_VERSION=4.1.1.1164 \ RUN set -x \ && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb http://download.mono-project.com/repo/debian jessie main" | tee /etc/apt/sources.list.d/mono-official.list \ + && echo "deb http://download.mono-project.com/repo/debian stable-stretch main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ && apt-get update \ && apt-get install \ curl \ @@ -28,7 +28,7 @@ RUN set -x \ -y \ && curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \ && mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg \ - && sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/dotnetdev.list' \ + && sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/dotnetdev.list' \ && apt-get update \ && apt-get install dotnet-sdk-$DOTNET_SDK_VERSION -y \ && apt-get clean \ diff --git a/README.md b/README.md index 16cd01d..a770a87 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,25 @@ Sonar Scanner MsBuild Dockerfile for .Net Core Projects +## This Image Using + +| | Name | Version | +| -------------- |:-------------:| -------------:| +| OS | Debian | Stretch (9) | +| Java | OpenJDK | 8 Update 162 | +| .NET Framework | Mono | Stable 5.10.0 | +| .NET SDK | .NET Core SDK | 2.1.101 | +| Sonar Scanner | CLI | 3.1.0.1141 | +| Sonar Scanner | MS Build | 4.1.1.1164 | + +## Latest Versions + +[Latest Debian](https://www.debian.org/releases/stable/) +[Latest OpenJDK](https://hub.docker.com/r/library/openjdk/tags/) +[Latest Mono](https://www.mono-project.com/download/stable/#download-lin-debian) +[Latest .Net SDK](https://www.microsoft.com/net/download/all) +[Latest Sonar Scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild) + ## Using Example First of all you need a sonarqube server. If you haven't one, run this code;