File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed
Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -419,6 +419,8 @@ Task("Docker-Build")
419419 {
420420 DockerBuild ( "linux" , "debian" , "netcoreapp2.1" , parameters ) ;
421421 DockerBuild ( "linux" , "debian" , "net472" , parameters ) ;
422+ DockerBuild ( "linux" , "centos7" , "netcoreapp2.1" , parameters ) ;
423+ DockerBuild ( "linux" , "fedora27" , "netcoreapp2.1" , parameters ) ;
422424 }
423425} ) ;
424426
@@ -637,6 +639,8 @@ Task("Publish-DockerHub")
637639 {
638640 DockerPush ( "linux" , "debian" , "netcoreapp2.1" , parameters ) ;
639641 DockerPush ( "linux" , "debian" , "net472" , parameters ) ;
642+ DockerPush ( "linux" , "centos7" , "netcoreapp2.1" , parameters ) ;
643+ DockerPush ( "linux" , "fedora27" , "netcoreapp2.1" , parameters ) ;
640644 }
641645
642646 DockerLogout ( ) ;
Original file line number Diff line number Diff line change 44- based on ** microsoft/dotnet:2.1-runtime** - Windows dotnet core
55- based on ** mono:5.18** - Linux Full FX - on mono
66- based on ** microsoft/dotnet:2.1-runtime** - Linux dotnet core
7+ - based on ** cenots:7** - linux dotnet core
78
89To run on windows container run this
910` docker run --rm -v "$(pwd):c:/repo" gittools/gitversion:latest-windows-net472 c:/repo `
@@ -13,4 +14,4 @@ To run on windows container run this
1314To run on linux container run this
1415` docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-net472 /repo `
1516
16- ` docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo `
17+ ` docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-netcoreapp2.1 /repo `
Original file line number Diff line number Diff line change 1+ FROM centos:7
2+ LABEL maintainers="GitTools Maintainers"
3+
4+ ENV DOTNET_VERSION='2.1'
5+ ARG contentFolder
6+
7+ # https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-current
8+ RUN rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm \
9+ && yum update cache
10+
11+ # if you need SDK use dotnet-sdk-$DOTNET_VERSION
12+ RUN yum install -y dotnet-runtime-$DOTNET_VERSION.x86_64 unzip libgit2-devel.x86_64 \
13+ && yum clean all \
14+ && rm -rf /tmp/*
15+
16+ RUN ln -s /usr/lib64/libgit2.so /usr/lib64/libgit2-15e1193.so
17+
18+ WORKDIR /app
19+ COPY $contentFolder/ ./
20+
21+ ENTRYPOINT ["dotnet" , "GitVersion.dll" ]
Original file line number Diff line number Diff line change 1+ FROM fedora:27
2+ LABEL maintainers="GitTools Maintainers"
3+
4+ ENV DOTNET_VERSION='2.1'
5+ ARG contentFolder
6+
7+ # https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-current
8+ RUN rpm -Uvh https://packages.microsoft.com/config/fedora/27/packages-microsoft-prod.rpm
9+
10+ # if you need SDK use dotnet-sdk-$DOTNET_VERSION
11+ RUN yum install -y dotnet-runtime-$DOTNET_VERSION.x86_64 unzip libgit2-devel.x86_64 \
12+ && yum clean all \
13+ && rm -rf /tmp/*
14+
15+ RUN ln -s /usr/lib64/libgit2.so /usr/lib64/libgit2-15e1193.so
16+
17+ WORKDIR /app
18+ COPY $contentFolder/ ./
19+
20+ ENTRYPOINT ["dotnet" , "GitVersion.dll" ]
You can’t perform that action at this time.
0 commit comments