GitVersion Dockerfile for .Net Core Projects
| Name | Version | |
|---|---|---|
| OS | Debian | Stretch (9) |
| .NET SDK | .NET Core SDK | 2.2 (2.2.401) |
| Git Version (DotNet Core Tool) | CLI | 5.0.1 |
Please check Releases Page for details.
Latest Debian Latest .Net SDK Latest Git Version
And then you need .Net Core project. If you haven't one, run this codes;
mkdir ConsoleApplication1
cd ConsoleApplication1
dotnet new console
dotnet new sln
dotnet sln ConsoleApplication1.sln add ConsoleApplication1.csproj
git init
Take login token from sonarqube server, change working directory to project directory and run this code;
docker run --name dotnet-gitversion -it --rm -v $(pwd):/pre-build \
-e JENKINS_BUILD_NUMBER=1 \
elioseverojunior/docker-dotnet-gitversion
Content type
Image
Digest
Size
604.1 MB
Last updated
about 7 years ago
docker pull elioseverojunior/docker-dotnet-gitversion