or: why not build build packages in your working environment?
(xkcd #303)
setting up the build environment in pbuilder/cowbuilder takes a long time
noweb build-depends on TeX Live, which is large, but once all the
build-dependencies are installed, the actual package build is fairly quick
(~ 2mins in my old laptop with HDD)very high-level overview
whalebuilder create [--debootstrap] [-r dist] <imagename>
--debootstrap
--debootstrap option broke recently, but I fixed it (I hope)
in 0.5whalebuilder update <imagename>
docker history)
I also provide pre-built base images (whalebuilder/debian)
whalebuilder build <baseimage> <dscfile>
e.g.
docker images | grep whalebuilder
whalebuilder build whalebuilder-base-debootstrap:sid \
noweb_2.11b-11.dsc
or
whalebuilder build --no-install-depends \
whalebuilder_build/noweb:2.11b-11
noweb_2.11b-11.dsc
docker exportdocker commitDockerfile:FROM whalebuilder-base:sid # your normal base image RUN apt-get update \ && apt-get install -y --no-install-recommends qtbase5-dev ... \ && apt-get clean
docker build -t whalebuilder-qt:sid .
whalebuilder-qt:sid as your base image when buildingqtbase5-dev, qtdeclarative5-dev? qt5keychain-dev? libqt5webkit5-dev?start with a base guess
Build-Depends: ..., qtbase5-dev, libqt5webkit5-dev
Build-Dependswhalebuilder build whalebuilder_build/nheko:0.0_2bgit20170607.82b48d9-1 <dscfile>
--deb option (v0.5)whalebuilder build --deb some_deb_file.deb <imagename> <dscfile>
--hook option to add commands to Dockerfile# note: all one line whalebuilder build --hook 'RUN echo "deb http://ftp.debian.org/debian jessie-backports main non-free contrib" > /etc/apt/sources.list.d/backports.list && echo "deb http://matrix.org/packages/debian/ jessie main" > /etc/apt/sources.list.d/synapse.list && apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && curl https://matrix.org/packages/debian/repo-key.asc | apt-key add - && apt-get remove -y curl ca-certificates && apt-get autoremove' <imagename> <dscfile>
--pull (if using a pre-built base image)--no-cache (v0.5)dpkg-buildpackage argumentsgit-buildpackage, etc. supportslides at: https://www.uhoreg.ca/documents/debconf17-whalebuilder