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")
419
419
{
420
420
DockerBuild ( "linux" , "debian" , "netcoreapp2.1" , parameters ) ;
421
421
DockerBuild ( "linux" , "debian" , "net472" , parameters ) ;
422
+ DockerBuild ( "linux" , "centos7" , "netcoreapp2.1" , parameters ) ;
423
+ DockerBuild ( "linux" , "fedora27" , "netcoreapp2.1" , parameters ) ;
422
424
}
423
425
} ) ;
424
426
@@ -637,6 +639,8 @@ Task("Publish-DockerHub")
637
639
{
638
640
DockerPush ( "linux" , "debian" , "netcoreapp2.1" , parameters ) ;
639
641
DockerPush ( "linux" , "debian" , "net472" , parameters ) ;
642
+ DockerPush ( "linux" , "centos7" , "netcoreapp2.1" , parameters ) ;
643
+ DockerPush ( "linux" , "fedora27" , "netcoreapp2.1" , parameters ) ;
640
644
}
641
645
642
646
DockerLogout ( ) ;
Original file line number Diff line number Diff line change 4
4
- based on ** microsoft/dotnet:2.1-runtime** - Windows dotnet core
5
5
- based on ** mono:5.18** - Linux Full FX - on mono
6
6
- based on ** microsoft/dotnet:2.1-runtime** - Linux dotnet core
7
+ - based on ** cenots:7** - linux dotnet core
7
8
8
9
To run on windows container run this
9
10
` 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
13
14
To run on linux container run this
14
15
` docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-linux-net472 /repo `
15
16
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