summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker/docker_git.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2016-05-02 13:50:02 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-05-02 14:02:42 -0400
commit6f17a76ac15f5cd619b70c1b60e54cf0dead477e (patch)
tree39e9bb159d6b7cd81ffb119f132b903a6dc7b8d8 /recipes-containers/docker/docker_git.bb
parentfd1a6d1bd31ead568f17a24ab7d7487c7f3514d6 (diff)
downloadmeta-virtualization-6f17a76ac15f5cd619b70c1b60e54cf0dead477e.tar.gz
docker: uprev to 1.11.1
Updating docker to the 1.11.1 release, which uses the open container initiative components. With this udpate, we drop patches that are no longer required, and adjust the install/strip routines to not look for obselete components. There are now 4 binaries required for docker to work: - docker - docker-containerd - docker-containerd-shim - docker-runc The new containerd and runc recipes provide the latter, while docker provides the cli and daemon. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/docker/docker_git.bb')
-rw-r--r--recipes-containers/docker/docker_git.bb24
1 files changed, 5 insertions, 19 deletions
diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb
index 19fdef01..f232d3d8 100644
--- a/recipes-containers/docker/docker_git.bb
+++ b/recipes-containers/docker/docker_git.bb
@@ -18,14 +18,12 @@ DESCRIPTION = "Linux container runtime \
18 subtle and/or glaring issues. \ 18 subtle and/or glaring issues. \
19 " 19 "
20 20
21SRCREV = "76d6bc9a9f1690e16f3721ba165364688b626de2" 21SRCREV = "5604cbed50d51c4039b1abcb1cf87c4e01bce924"
22SRC_URI = "\ 22SRC_URI = "\
23 git://github.com/docker/docker.git;nobranch=1 \ 23 git://github.com/docker/docker.git;nobranch=1 \
24 file://docker.service \ 24 file://docker.service \
25 file://docker.init \ 25 file://docker.init \
26 file://hi.Dockerfile \ 26 file://hi.Dockerfile \
27 file://disable_sha1sum_startup.patch \
28 file://Bump-bolt-to-v1.1.0.patch \
29 " 27 "
30 28
31# Apache-2.0 for docker 29# Apache-2.0 for docker
@@ -34,7 +32,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cc2221abf0b96ea39dd68141b70f7937"
34 32
35S = "${WORKDIR}/git" 33S = "${WORKDIR}/git"
36 34
37DOCKER_VERSION = "1.9.0" 35DOCKER_VERSION = "1.11.1"
38PV = "${DOCKER_VERSION}+git${SRCREV}" 36PV = "${DOCKER_VERSION}+git${SRCREV}"
39 37
40DEPENDS = "go-cross \ 38DEPENDS = "go-cross \
@@ -58,6 +56,7 @@ DEPENDS = "go-cross \
58 56
59DEPENDS_append_class-target = "lvm2" 57DEPENDS_append_class-target = "lvm2"
60RDEPENDS_${PN} = "curl aufs-util git cgroup-lite util-linux iptables" 58RDEPENDS_${PN} = "curl aufs-util git cgroup-lite util-linux iptables"
59RDEPENDS_${PN} += "containerd runc"
61RRECOMMENDS_${PN} = "lxc docker-registry rt-tests" 60RRECOMMENDS_${PN} = "lxc docker-registry rt-tests"
62RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat" 61RRECOMMENDS_${PN} += " kernel-module-dm-thin-pool kernel-module-nf-nat"
63DOCKER_PKG="github.com/docker/docker" 62DOCKER_PKG="github.com/docker/docker"
@@ -110,10 +109,7 @@ INITSCRIPT_PARAMS_${PN} = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
110 109
111do_install() { 110do_install() {
112 mkdir -p ${D}/${bindir} 111 mkdir -p ${D}/${bindir}
113 cp ${S}/bundles/${DOCKER_VERSION}/dynbinary/docker-${DOCKER_VERSION} \ 112 cp ${S}/bundles/${DOCKER_VERSION}/dynbinary/docker-${DOCKER_VERSION} ${D}/${bindir}/docker
114 ${D}/${bindir}/docker
115 cp ${S}/bundles/${DOCKER_VERSION}/dynbinary/dockerinit-${DOCKER_VERSION} \
116 ${D}/${bindir}/dockerinit
117 113
118 if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then 114 if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
119 install -d ${D}${systemd_unitdir}/system 115 install -d ${D}${systemd_unitdir}/system
@@ -135,15 +131,5 @@ GROUPADD_PARAM_${PN} = "-r docker"
135 131
136FILES_${PN} += "/lib/systemd/system/*" 132FILES_${PN} += "/lib/systemd/system/*"
137 133
138# DO NOT STRIP docker and dockerinit!!! 134# DO NOT STRIP docker
139#
140# Reason:
141# The "docker" package contains two binaries: "docker" and "dockerinit",
142# which are both written in Go. The "dockerinit" package is built first,
143# then its checksum is given to the build process compiling the "docker"
144# binary. Hence the checksum of the unstripped "dockerinit" binary is hard
145# coded into the "docker" binary. At runtime the "docker" binary invokes
146# the "dockerinit" binary, but before doing that it ensures the checksum
147# of "dockerinit" matches with the hard coded value.
148#
149INHIBIT_PACKAGE_STRIP = "1" 135INHIBIT_PACKAGE_STRIP = "1"