Skip to content

Commit 6a127c3

Browse files
committed
added fedora dockerfile and move to proper folder
1 parent 5e07e5e commit 6a127c3

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

build.cake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ Task("Docker-Build")
419419
{
420420
DockerBuild("linux", "debian", "netcoreapp2.1", parameters);
421421
DockerBuild("linux", "debian", "net472", parameters);
422-
DockerBuild("linux", "centos", "netcoreapp2.1", parameters);
422+
DockerBuild("linux", "centos7", "netcoreapp2.1", parameters);
423+
DockerBuild("linux", "fedora27", "netcoreapp2.1", parameters);
423424
}
424425
});
425426

@@ -638,7 +639,8 @@ Task("Publish-DockerHub")
638639
{
639640
DockerPush("linux", "debian", "netcoreapp2.1", parameters);
640641
DockerPush("linux", "debian", "net472", parameters);
641-
DockerPush("linux", "centos", "netcoreapp2.1", parameters);
642+
DockerPush("linux", "centos7", "netcoreapp2.1", parameters);
643+
DockerPush("linux", "fedora27", "netcoreapp2.1", parameters);
642644
}
643645

644646
DockerLogout();
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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"]

0 commit comments

Comments
 (0)