[meta-virtualization] [PATCH 1/2] docker-proxy: add recipe for docker-proxy

Pascal Bach pascal.bach at siemens.com
Fri Apr 6 06:41:55 PDT 2018


Before docker-proxy was built as part of the docker-recipe but there
in some situations when built for x86_64 under x86_64 it incorrectly
linked against host libraries.
This puts it into a separate recipe that makes use the go.bbclass to build
the binary properly.

Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
---
 recipes-containers/docker/docker-proxy_git.bb | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-containers/docker/docker-proxy_git.bb

diff --git a/recipes-containers/docker/docker-proxy_git.bb b/recipes-containers/docker/docker-proxy_git.bb
new file mode 100644
index 0000000..4271e58
--- /dev/null
+++ b/recipes-containers/docker/docker-proxy_git.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Docker proxy binary to forward traffic between host and containers"
+HOMEPAGE = "https://github.com/docker/libnetwork"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://src/github.com/docker/libnetwork/LICENSE;md5=d2794c0df5b907fdace235a619d80314"
+
+SRC_URI = "git://${GO_IMPORT}"
+SRCREV = "4cb38c2987c236dce03c868d99b57b1e28a4b81c"
+
+GO_IMPORT = "github.com/docker/libnetwork"
+GO_INSTALL = "${GO_IMPORT}/cmd/proxy"
+
+DOCKER_VERSION = "18.03.0"
+PV = "${DOCKER_VERSION}+git${SRCREV}"
+
+inherit go
+
+# The binary is expected to be called docker-proxy
+do_install_append() {
+    mv ${D}${bindir}/proxy ${D}${bindir}/${BPN}
+}
-- 
2.11.0



More information about the meta-virtualization mailing list