Skip to content

Commit

Permalink
Update OS version to Debian 9 and Java version to 8u162
Browse files Browse the repository at this point in the history
  • Loading branch information
burakince committed Apr 1, 2018
1 parent 3a33f28 commit 475758b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:openjdk-8-jre
FROM openjdk:8u162-jre-stretch

MAINTAINER Burak Ince <[email protected]>

Expand All @@ -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 \
Expand All @@ -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 \
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 475758b

Please sign in to comment.