Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added fedora dockerfile and move to proper folder
  • Loading branch information
mr-exz committed Mar 4, 2019
commit 6a127c386cbbba26c986e435d3c4c8fe92c8cd1d
6 changes: 4 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ Task("Docker-Build")
{
DockerBuild("linux", "debian", "netcoreapp2.1", parameters);
DockerBuild("linux", "debian", "net472", parameters);
DockerBuild("linux", "centos", "netcoreapp2.1", parameters);
DockerBuild("linux", "centos7", "netcoreapp2.1", parameters);
DockerBuild("linux", "fedora27", "netcoreapp2.1", parameters);
}
});

Expand Down Expand Up @@ -638,7 +639,8 @@ Task("Publish-DockerHub")
{
DockerPush("linux", "debian", "netcoreapp2.1", parameters);
DockerPush("linux", "debian", "net472", parameters);
DockerPush("linux", "centos", "netcoreapp2.1", parameters);
DockerPush("linux", "centos7", "netcoreapp2.1", parameters);
DockerPush("linux", "fedora27", "netcoreapp2.1", parameters);
}

DockerLogout();
Expand Down
20 changes: 20 additions & 0 deletions src/Docker/linux/fedora27/netcoreapp2.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM fedora:27
LABEL maintainers="GitTools Maintainers"

ENV DOTNET_VERSION='2.1'
ARG contentFolder

# https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-current
RUN rpm -Uvh https://packages.microsoft.com/config/fedora/27/packages-microsoft-prod.rpm

# if you need SDK use dotnet-sdk-$DOTNET_VERSION
RUN yum install -y dotnet-runtime-$DOTNET_VERSION.x86_64 unzip libgit2-devel.x86_64 \
&& yum clean all \
&& rm -rf /tmp/*

RUN ln -s /usr/lib64/libgit2.so /usr/lib64/libgit2-15e1193.so

WORKDIR /app
COPY $contentFolder/ ./

ENTRYPOINT ["dotnet", "GitVersion.dll"]