File: Dockerfile

package info (click to toggle)
golang-pty 0.0~git20140315.1.67e2db2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 172 kB
  • ctags: 89
  • sloc: sh: 104; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM tianon/debian-devel

# TODO find a cleaner way to get ".git" in the image without this hack
RUN git clone --no-checkout git://anonscm.debian.org/pkg-go/packages/golang-pty.git /usr/src/golang-pty

# start by adding just "debian/control" so we can get mk-build-deps with maximum caching
ADD control /usr/src/golang-pty/debian/
WORKDIR /usr/src/golang-pty

# get all the build deps of _this_ package in a nice repeatable way
RUN apt-get update && mk-build-deps -irt'apt-get --no-install-recommends -yq' debian/control

# need our debian/ directory to compile _this_ package
ADD . /usr/src/golang-pty/debian

# go download and unpack our upstream source
#RUN uscan --force-download --verbose --download-current-version
RUN git fetch --tags && ./debian/helpers/generate-tarball.sh ../
RUN origtargz --unpack

# tianon is _really_ lazy, and likes a preseeded bash history
RUN echo 'origtargz --unpack && debuild -us -uc --lintian-opts "-EvIL+pedantic"' >> /root/.bash_history

CMD [ "debuild", "-us", "-uc", "--lintian-opts", "-EvIL+pedantic" ]