Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 8 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,13 @@ Task("Docker-Build")
}
else if (parameters.IsRunningOnLinux)
{
DockerBuild("linux", "debian", "netcoreapp2.1", parameters);
DockerBuild("linux", "debian", "net472", parameters);
DockerBuild("linux", "debian", "netcoreapp2.1", parameters);
DockerBuild("linux", "centos7", "netcoreapp2.1", parameters);
DockerBuild("linux", "fedora27", "netcoreapp2.1", parameters);
DockerBuild("linux", "debian", "netcoreapp2.2", parameters);
DockerBuild("linux", "centos7", "netcoreapp2.2", parameters);
DockerBuild("linux", "fedora27", "netcoreapp2.2", parameters);
}
});

Expand Down Expand Up @@ -649,10 +652,13 @@ Task("Publish-DockerHub")
}
else if (parameters.IsRunningOnLinux)
{
DockerPush("linux", "debian", "netcoreapp2.1", parameters);
DockerPush("linux", "debian", "net472", parameters);
DockerPush("linux", "debian", "netcoreapp2.1", parameters);
DockerPush("linux", "centos7", "netcoreapp2.1", parameters);
DockerPush("linux", "fedora27", "netcoreapp2.1", parameters);
DockerPush("linux", "debian", "netcoreapp2.2", parameters);
DockerPush("linux", "centos7", "netcoreapp2.2", parameters);
DockerPush("linux", "fedora27", "netcoreapp2.2", parameters);
}

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

ENV DOTNET_VERSION='2.2'
ARG contentFolder

# https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-current
RUN rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm \
&& yum update cache

# 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"]
12 changes: 12 additions & 0 deletions src/Docker/linux/debian/netcoreapp2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM mcr.microsoft.com/dotnet/core/runtime:2.2
LABEL maintainers="GitTools Maintainers"
ARG contentFolder

RUN apt-get update && \
apt-get install -y libgit2-dev && \
ln -s /usr/lib/x86_64-linux-gnu/libgit2.so /lib/x86_64-linux-gnu/libgit2-15e1193.so

WORKDIR /app
COPY $contentFolder/ ./

ENTRYPOINT ["dotnet", "GitVersion.dll"]
20 changes: 20 additions & 0 deletions src/Docker/linux/fedora27/netcoreapp2.2/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.2'
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"]