aboutsummaryrefslogtreecommitdiffstats
path: root/community/docker/docker-gitcommit.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-19 12:06:20 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-19 12:08:35 +0200
commita0d3ff68910d2d189b668ab191ddae2150bf9fe2 (patch)
tree8c246334de33d9510f57eda7e1ffa79c7dea8517 /community/docker/docker-gitcommit.patch
parentc8304fd395644b8963c8b07c2fae69054606ca76 (diff)
downloadaports-a0d3ff68910d2d189b668ab191ddae2150bf9fe2.tar.bz2
aports-a0d3ff68910d2d189b668ab191ddae2150bf9fe2.tar.xz
community/docker: add needed binaries
docker 1.11 needs runc, containerd and containerd-shim. We bundle those simliar to how the precompiled official docker binary distribution does.
Diffstat (limited to 'community/docker/docker-gitcommit.patch')
-rw-r--r--community/docker/docker-gitcommit.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/docker/docker-gitcommit.patch b/community/docker/docker-gitcommit.patch
new file mode 100644
index 0000000000..0a7ccf8a2c
--- /dev/null
+++ b/community/docker/docker-gitcommit.patch
@@ -0,0 +1,28 @@
+From 355ad33087c1c683458b60a6bc9e1f89623ee275 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <natanael.copa@docker.com>
+Date: Thu, 14 Apr 2016 17:29:12 +0200
+Subject: [PATCH] Fix detection of git commit during build from tarball
+
+Distro packagers will often use the tarball to build a package and have
+the build script for the package in git. To avoid that the docker build
+script picks up the git commit from the distro repo we also check for a
+directory named .git before check for -unsupported builds.
+
+Signed-off-by: Natanael Copa <natanael.copa@docker.com>
+---
+ hack/make.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/hack/make.sh b/hack/make.sh
+index 58561e2..41a53f6 100755
+--- a/hack/make.sh
++++ b/hack/make.sh
+@@ -79,7 +79,7 @@ DEFAULT_BUNDLES=(
+ )
+
+ VERSION=$(< ./VERSION)
+-if command -v git &> /dev/null && git rev-parse &> /dev/null; then
++if command -v git &> /dev/null && [ -d .git ] && git rev-parse &> /dev/null; then
+ GITCOMMIT=$(git rev-parse --short HEAD)
+ if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
+ GITCOMMIT="$GITCOMMIT-unsupported"