Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 07, 2014
Barnaby Gray Add stdeb.cfg to MANIFEST 815cf2f
Commits on Feb 14, 2014
Barnaby Gray Add docker debbuild. 12b3a2b
Showing with 33 additions and 1 deletion.
  1. +1 −1 MANIFEST.in
  2. +16 −0 docker/debbuild/Dockerfile
  3. +14 −0 docker/debbuild/build.sh
  4. +2 −0 docker/debbuild/stdeb.cfg
View
2 MANIFEST.in
@@ -1 +1 @@
-include README.rst logcabin/logging.cfg
+include README.rst logcabin/logging.cfg stdeb.cfg
View
16 docker/debbuild/Dockerfile
@@ -0,0 +1,16 @@
+# Deb build file
+# docker build -t logcabin-debbuild docker/debbuild
+# docker run -t -i -e PACKAGE=https://pypi.python.org/packages/package.tar.gz -v $HOME/.gnupg:/root/.gnupg logcabin-debbuild
+# CONTAINER=$(docker ps -q -a | head -1)
+# docker cp $CONTAINER:/tmp/build/deb_dist/logcabin_1.0.x-1_all.deb .
+FROM ubuntu:12.04
+MAINTAINER Barnaby Gray <barnaby@pickle.me.uk>
+
+RUN apt-get update && apt-get install -y dput python-stdeb devscripts wget && apt-get clean
+ENV DEBIAN_FRONTEND noninteractive
+RUN apt-get install -y python-pip
+RUN pip install versiontools
+ADD . /
+
+ENV HOME /root
+CMD ./build.sh
View
14 docker/debbuild/build.sh
@@ -0,0 +1,14 @@
+#!/bin/bash -e
+
+: ${PACKAGE:?must be set}
+
+BASENAME=$(basename $PACKAGE)
+DIRNAME=${BASENAME%.tar.gz}
+
+mkdir /tmp/build
+cd /tmp/build
+wget $PACKAGE
+
+py2dsc -x /stdeb.cfg $BASENAME
+cd deb_dist/$DIRNAME
+dpkg-buildpackage
View
2 docker/debbuild/stdeb.cfg
@@ -0,0 +1,2 @@
+[DEFAULT]
+Package: logcabin

No commit comments for this range

Something went wrong with that request. Please try again.