Dockerfile: git-pull more history, to get a version string

The Docker build process seems to use 'git pull --depth=1', which
doesn't fetch enough history to see a tag, which means tahoe's setup.py
can't compute a version (then 'tahoe --version' reports "unknown").
Pulling a hundred commits should be enough to see a tag without making
the resulting image unnecessarily large. If we go more than 100 commits
between tags, we'll need to increase this, or come up with something
smarter.
This commit is contained in:
Brian Warner 2015-06-15 14:40:19 -07:00
parent 1105278589
commit f26423cb4d

View File

@ -3,6 +3,7 @@ FROM python:2.7
ADD . /tahoe-lafs
RUN \
cd /tahoe-lafs && \
git pull --depth=100 && \
make && \
ln -vs /tahoe-lafs/bin/tahoe /usr/local/bin/tahoe