From 9694fb85d791376dc05849f607883f50a6c79f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Mon, 12 Aug 2013 20:16:08 -0700 Subject: [PATCH] Install python-magic (it helps s3cmd) and a convenience /src symlink --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index b5ff537bce..22a5896ca6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ run apt-get install -y -q reprepro # Install s3cmd 1.0.1 (earlier versions don't support env variables in the config) run apt-get install -y -q python-pip run pip install s3cmd +run pip install python-magic run /bin/echo -e '[default]\naccess_key=$AWS_ACCESS_KEY\nsecret_key=$AWS_SECRET_KEY\n' > /.s3cfg # Download dependencies run PKG=github.com/kr/pty REV=27435c699; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV @@ -32,6 +33,7 @@ run apt-get install -y -q mercurial run PKG=code.google.com/p/go.net/ REV=84a4013f96e0; hg clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && hg checkout $REV # Upload docker source add . /go/src/github.com/dotcloud/docker +run ln -s /go/src/github.com/dotcloud/docker /src # Build the binary run cd /go/src/github.com/dotcloud/docker && ./make.sh cmd cd /go/src/github.com/dotcloud/docker && ./release.sh