Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to Dockerfile #1219

Merged
merged 4 commits into from
May 20, 2017
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
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ ARG GitVersionZip
# Add GitVersion

ADD ./releaseArtifacts/$GitVersionZip .
RUN unzip -d /usr/lib/GitVersion/ $GitVersionZip
RUN rm $GitVersionZip
RUN unzip -d /usr/lib/GitVersion/ $GitVersionZip && rm $GitVersionZip
WORKDIR /usr/lib/GitVersion/

# Libgit2 can't resolve relative paths, patch to absolute path
Expand All @@ -16,4 +15,4 @@ RUN sed -i 's|lib/linux/x86_64|/usr/lib/GitVersion/lib/linux/x86_64|g' /usr/lib/
RUN mkdir /repo
VOLUME /repo

ENTRYPOINT ["mono", "./GitVersion.exe", "/repo"]
ENTRYPOINT ["mono", "./GitVersion.exe", "/repo"]
7 changes: 2 additions & 5 deletions src/DockerBase/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
FROM ubuntu
FROM ubuntu:16.04

MAINTAINER GitTools Maintainers <[email protected]>

# Wheezy doesn't support glibc 2.15 which libgit2sharp requires
# So we are going to install mono on ubuntu instead
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN apt-get update
RUN apt-get install libcurl3 tzdata unzip curl git-all -y
RUN echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
RUN apt-get update
RUN apt-get install mono-complete -y
RUN apt-get update && apt-get install libcurl3 tzdata unzip curl git-all mono-complete -y && apt-get -yqq clean
RUN cp /usr/share/zoneinfo/GMT /etc/localtime