From ee93bcf1a6155a71c8978b78b8bf03282dbdf088 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 13 Jun 2019 13:46:29 +0200 Subject: [PATCH 1/2] add git-lfs needed for cloning repos with files stored in LFS --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99e7355b..ff4a477e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,11 @@ RUN mkdir /tmp/wheelhouse \ FROM python:${PYTHON_VERSION}-slim # we do need git, though -RUN apt-get update \ - && apt-get -y install --no-install-recommends git \ +# git-lfs is in backports +ARG DEB_RELEASE=stretch +RUN echo "deb http://deb.debian.org/debian ${DEB_RELEASE}-backports main" > /etc/apt/sources.list.d/backports.list \ + && apt-get update \ + && apt-get -t ${DEB_RELEASE}-backports -y install --no-install-recommends git git-lfs \ && rm -rf /var/lib/apt/lists/* # install repo2docker From 9463b3bf8c3c645e8c7c816ff0a09e6212e301dc Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 13 Jun 2019 13:53:18 +0200 Subject: [PATCH 2/2] verify lfs files --- tests/external/reproductions.repos.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/external/reproductions.repos.yaml b/tests/external/reproductions.repos.yaml index 3aa223db..6a304f3c 100644 --- a/tests/external/reproductions.repos.yaml +++ b/tests/external/reproductions.repos.yaml @@ -34,3 +34,8 @@ - name: 10.5281/zenodo.1211089 url: 10.5281/zenodo.1211089 verify: python2 -c 'import matplotlib' +# Test that files in git-lfs are properly cloned +- name: LFS + url: https://github.com/binderhub-ci-repos/lfs + ref: 9abf54a + verify: grep "I am stored in git lfs" in-lfs.dat