2015-07-12 17:57:20 +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
|
2015-07-18 02:52:50 +00:00
|
|
|
LABEL RUN="docker run -v git-lfs-repo-dir:/src" -v repo_dir:/repo"
|
2015-07-12 17:57:20 +00:00
|
|
|
|
2015-07-18 01:39:18 +00:00
|
|
|
|
2015-07-19 22:59:14 +00:00
|
|
|
RUN yum install -y createrepo rsync git ruby ruby-devel golang gnupg2 rpm-sign expect
|
2015-07-12 17:57:20 +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
|
2015-07-17 17:07:00 +00:00
|
|
|
#stored in the image.
|
2015-07-12 17:57:20 +00:00
|
|
|
|
|
|
|
ENV DOCKER_LFS_BUILD_VERSION=master
|
|
|
|
#ENV DOCKER_LFS_BUILD_VERSION=v0.5.3
|
|
|
|
#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-17 17:07:00 +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
|
|
|
|
RUN cd /tmp/docker_setup/git-lfs-*/rpm; \
|
|
|
|
touch build.log; \
|
|
|
|
tail -f build.log & ./build_rpms.bsh; \
|
|
|
|
pkill tail
|
2015-07-12 17:57:20 +00:00
|
|
|
RUN rm -rf /tmp/docker_setup
|
|
|
|
|
2015-07-17 17:07:00 +00:00
|
|
|
#Add the simple build repo script
|
2015-07-23 03:23:16 +00:00
|
|
|
COPY rpm_sign.exp signing.key centos_script.bsh /tmp/
|
2015-07-17 17:07:00 +00:00
|
|
|
|
2015-07-19 22:59:14 +00:00
|
|
|
CMD /tmp/centos_script.bsh
|