2015-07-26 00:01:11 +00:00
|
|
|
FROM centos:7
|
|
|
|
MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
|
|
|
|
|
|
|
|
#Docker RUN example, pass in the git-lfs checkout copy you are working with
|
|
|
|
LABEL RUN="docker run -v git-lfs-repo-dir:/src -v repo_dir:/repo"
|
|
|
|
|
2015-09-11 06:57:39 +00:00
|
|
|
RUN yum install -y createrepo rsync git ruby ruby-devel \
|
|
|
|
gnupg2 rpm-sign expect gcc
|
|
|
|
|
|
|
|
ENV GOLANG_VERSION=[{GOLANG_VERSION}]
|
|
|
|
|
|
|
|
ENV GOROOT=/usr/local/go
|
|
|
|
|
|
|
|
RUN cd /usr/local && \
|
|
|
|
curl -L -O https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz && \
|
|
|
|
tar zxf go${GOLANG_VERSION}.linux-amd64.tar.gz && \
|
|
|
|
ln -s /usr/local/go/bin/go /usr/bin/go && \
|
|
|
|
ln -s /usr/local/go/bin/gofmt /usr/bin/gofmt
|
2015-07-26 00:01:11 +00:00
|
|
|
|
|
|
|
#The purpose of this is to build and install everything needed to build git-lfs
|
|
|
|
#Next time. So that the LONG build/installed in centos are only done once, and
|
|
|
|
#stored in the image.
|
|
|
|
|
|
|
|
#Set to master if you want the lastest, but IF there is a failure,
|
|
|
|
#the docker will not build, so I decided to make a stable version the default
|
2015-07-30 05:02:46 +00:00
|
|
|
ENV DOCKER_LFS_BUILD_VERSION=[{DOCKER_LFS_BUILD_VERSION}]
|
2015-07-26 00:01:11 +00:00
|
|
|
|
|
|
|
ADD https://github.com/github/git-lfs/archive/${DOCKER_LFS_BUILD_VERSION}.tar.gz /tmp/docker_setup/
|
|
|
|
RUN cd /tmp/docker_setup/; \
|
|
|
|
tar zxf ${DOCKER_LFS_BUILD_VERSION}.tar.gz; \
|
|
|
|
cd /tmp/docker_setup/git-lfs-*/rpm; \
|
|
|
|
touch build.log; \
|
|
|
|
tail -f build.log & ./build_rpms.bsh; \
|
|
|
|
pkill tail; \
|
|
|
|
rm -rvf /tmp/docker_setup/git-lfs-*/rpm/BUILD*
|