2015-07-22 03:47:01 +00:00
|
|
|
FROM debian:wheezy
|
2015-07-20 05:40:24 +00:00
|
|
|
MAINTAINER Andy Neff <andyneff@users.noreply.github.com>
|
|
|
|
|
|
|
|
#Docker RUN example, pass in the git-lfs checkout copy you are working with
|
2015-07-23 05:49:40 +00:00
|
|
|
LABEL RUN="docker run -v git-lfs-checkout-dir:/src -v repo_dir:/repo"
|
2015-07-20 05:40:24 +00:00
|
|
|
|
2015-07-23 03:23:16 +00:00
|
|
|
COPY test_lfs.bsh /tmp/test_lfs.bsh
|
2015-07-20 05:40:24 +00:00
|
|
|
|
|
|
|
#TODO: Needs to be replaced by an apt repo
|
2015-07-31 20:32:40 +00:00
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y wget
|
|
|
|
ENV REPO_HOSTNAME="[{REPO_HOSTNAME}]"
|
|
|
|
RUN echo "deb http://${REPO_HOSTNAME:-git-lfs.github.com}/debian/7 wheezy main" > /etc/apt/sources.list.d/git-lfs-main.list
|
|
|
|
RUN wget -P /tmp/ http://${REPO_HOSTNAME:-git-lfs.github.com}/debian/7/GPG-KEY-GITLFS || :
|
|
|
|
RUN [ ! -s /tmp/GPG-KEY-GITLFS ] || \
|
|
|
|
gpg --dearmour -o /etc/apt/trusted.gpg.d/git-lfs.gpg /tmp/GPG-KEY-GITLFS
|
2015-07-26 00:01:11 +00:00
|
|
|
RUN [ ! -s /etc/apt/trusted.gpg.d/git-lfs.gpg ] || \
|
2015-07-31 20:32:40 +00:00
|
|
|
apt-key add /etc/apt/trusted.gpg.d/git-lfs.gpg
|
|
|
|
#I wasn't supposed to need to do this, but I don't know how not to.
|
2015-07-20 05:40:24 +00:00
|
|
|
|
|
|
|
#These SHOULD be throw away commands, and not stored as Docker commits
|
2015-07-22 03:47:01 +00:00
|
|
|
CMD echo 'deb http://http.debian.net/debian wheezy-backports main' > /etc/apt/sources.list.d/wheezy-backports-main.list && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -t wheezy-backports git-lfs && \
|
2015-07-20 05:40:24 +00:00
|
|
|
git lfs && \
|
2015-07-22 03:47:01 +00:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -t wheezy-backports golang curl && \
|
2015-07-23 05:49:40 +00:00
|
|
|
/tmp/test_lfs.bsh
|