43624a3c77
Changed DOCKER_LFS_BUILD_VERSION to default 0.5.3 for now instead of auto updating by version. Added complexity and delays with no real utility Removed BUILD_LOCAL option so that it always built local. Added complexity with no real utility Fixed default key behavior
27 lines
1.1 KiB
Docker
27 lines
1.1 KiB
Docker
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"
|
|
|
|
RUN yum install -y createrepo rsync git ruby ruby-devel golang \
|
|
gnupg2 rpm-sign expect \
|
|
golang-pkg-linux-386.noarch
|
|
|
|
#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
|
|
ENV DOCKER_LFS_BUILD_VERSION=[{DOCKER_LFS_BUILD_VERSION}]
|
|
|
|
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*
|