File: Dockerfile

package info (click to toggle)
golang-github-vishvananda-netns 0.0~git20150710.0.604eaf1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 140 kB
  • sloc: sh: 97; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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-github-vishvananda-netns.git /usr/src/golang-github-vishvananda-netns

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

# 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 -yV' debian/control && dpkg-checkbuilddeps

# need our debian/ directory to compile _this_ package
COPY . /usr/src/golang-github-vishvananda-netns/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 'adt-run --unbuilt-tree . --- null' >> ~/.bash_history
RUN echo 'origtargz --unpack && dpkg-buildpackage -us -uc && lintian -EvIL+pedantic' >> ~/.bash_history