| 1 |
FROM tianon/debian-devel |
| 2 |
|
| 3 |
# TODO find a cleaner way to get ".git" in the image without this hack |
| 4 |
RUN git clone --no-checkout git://anonscm.debian.org/pkg-go/packages/golang-pty.git /usr/src/golang-pty |
| 5 |
|
| 6 |
# start by adding just "debian/control" so we can get mk-build-deps with maximum caching |
| 7 |
ADD control /usr/src/golang-pty/debian/ |
| 8 |
WORKDIR /usr/src/golang-pty |
| 9 |
|
| 10 |
# get all the build deps of _this_ package in a nice repeatable way |
| 11 |
RUN apt-get update && mk-build-deps -irt'apt-get --no-install-recommends -yq' debian/control |
| 12 |
|
| 13 |
# need our debian/ directory to compile _this_ package |
| 14 |
ADD . /usr/src/golang-pty/debian |
| 15 |
|
| 16 |
# go download and unpack our upstream source |
| 17 |
#RUN uscan --force-download --verbose --download-current-version |
| 18 |
RUN git fetch --tags && ./debian/helpers/generate-tarball.sh ../ |
| 19 |
RUN origtargz --unpack |
| 20 |
|
| 21 |
# tianon is _really_ lazy, and likes a preseeded bash history |
| 22 |
RUN echo 'origtargz --unpack && dpkg-buildpackage -us -uc && lintian -EvIL+pedantic' >> /root/.bash_history |