diff --git a/Dockerfile b/Dockerfile index 2aea300..b5e2648 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,12 @@ -FROM mono +FROM gittools/libgit2sharp-mono +LABEL maintainer="Erik Hvattum " -MAINTAINER Alexander Gavrilov - -# Install software for GitVersion -RUN echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots 4.4.2.11/main" | tee /etc/apt/sources.list.d/mono-xamarin.list \ - && echo "deb http://ftp.debian.org/debian sid main" | tee -a /etc/apt/sources.list \ - && apt-get clean && apt-get update \ - && apt-get install -y --no-install-recommends unzip git libc6 libc6-dev libc6-dbg \ - && rm -rf /var/lib/apt/lists/* /tmp/* - -# Install GitVersion -RUN curl -Ls https://github.com/GitTools/GitVersion/releases/download/v4.0.0-beta.9/GitVersion.CommandLine.4.0.0-beta0009.nupkg -o tmp.zip \ +# Install GitVersion 4 +RUN curl -Ls https://github.com/GitTools/GitVersion/releases/download/v4.0.0-beta.12/GitVersion.CommandLine.4.0.0-beta0012.nupkg -o tmp.zip \ && unzip -d /usr/lib/GitVersion tmp.zip \ - && rm tmp.zip - + && rm tmp.zip \ + && sed -i 's|lib/linux/x86_64|/usr/lib/GitVersion/tools/lib/linux/x86_64|g' /usr/lib/GitVersion/tools/LibGit2Sharp.dll.config + WORKDIR /usr/lib/GitVersion/tools VOLUME ["/src"] diff --git a/MR_DockerGitVersion.xml b/MR_DockerGitVersion.xml deleted file mode 100644 index 7f7ecfb..0000000 --- a/MR_DockerGitVersion.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - Run GitVersion in a docker containter - - - - - - - - - - - - - - - - diff --git a/README.md b/README.md index 1f303c1..3fb2bc1 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,4 @@ GitVersion is a tool to help you achieve *Semantic Versioning* on your project. -* [GitVersion Project homepage](https://github.com/GitTools/GitVersion) - -# How to use this image - -This image will run GitVersion Command Line tool. It expects the git rempository to be bound at /src - - $ docker run --rm -v "$PWD:/src" ilucker/gitversion /h \ No newline at end of file +* [GitVersion Project homepage](https://github.com/GitTools/GitVersion) \ No newline at end of file