Skip to content

Commit 6452a63

Browse files
authored
Merge pull request #1633 from mr-exz/docker-with-netcoreapp2.2
add netcoreapp2.2
2 parents 5c1db80 + 49636f1 commit 6452a63

File tree

4 files changed

+61
-2
lines changed

4 files changed

+61
-2
lines changed

build.cake

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,13 @@ Task("Docker-Build")
416416
}
417417
else if (parameters.IsRunningOnLinux)
418418
{
419-
DockerBuild("linux", "debian", "netcoreapp2.1", parameters);
420419
DockerBuild("linux", "debian", "net472", parameters);
420+
DockerBuild("linux", "debian", "netcoreapp2.1", parameters);
421421
DockerBuild("linux", "centos7", "netcoreapp2.1", parameters);
422422
DockerBuild("linux", "fedora27", "netcoreapp2.1", parameters);
423+
DockerBuild("linux", "debian", "netcoreapp2.2", parameters);
424+
DockerBuild("linux", "centos7", "netcoreapp2.2", parameters);
425+
DockerBuild("linux", "fedora27", "netcoreapp2.2", parameters);
423426
}
424427
});
425428

@@ -649,10 +652,13 @@ Task("Publish-DockerHub")
649652
}
650653
else if (parameters.IsRunningOnLinux)
651654
{
652-
DockerPush("linux", "debian", "netcoreapp2.1", parameters);
653655
DockerPush("linux", "debian", "net472", parameters);
656+
DockerPush("linux", "debian", "netcoreapp2.1", parameters);
654657
DockerPush("linux", "centos7", "netcoreapp2.1", parameters);
655658
DockerPush("linux", "fedora27", "netcoreapp2.1", parameters);
659+
DockerPush("linux", "debian", "netcoreapp2.2", parameters);
660+
DockerPush("linux", "centos7", "netcoreapp2.2", parameters);
661+
DockerPush("linux", "fedora27", "netcoreapp2.2", parameters);
656662
}
657663

658664
DockerLogout();
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM centos:7
2+
LABEL maintainers="GitTools Maintainers"
3+
4+
ENV DOTNET_VERSION='2.2'
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"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM mcr.microsoft.com/dotnet/core/runtime:2.2
2+
LABEL maintainers="GitTools Maintainers"
3+
ARG contentFolder
4+
5+
RUN apt-get update && \
6+
apt-get install -y libgit2-dev && \
7+
ln -s /usr/lib/x86_64-linux-gnu/libgit2.so /lib/x86_64-linux-gnu/libgit2-15e1193.so
8+
9+
WORKDIR /app
10+
COPY $contentFolder/ ./
11+
12+
ENTRYPOINT ["dotnet", "GitVersion.dll"]
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.2'
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)