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

Bruce Ashfield bruce.ashfield at gmail.com
Fri Apr 6 06:47:46 PDT 2018


On Fri, Apr 6, 2018 at 9:41 AM, Pascal Bach <pascal.bach at siemens.com> wrote:
> 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.
>

As I hinted, I'm going to figure out how to integrate / fix this in the main
docker recipe.

Having the various SRCREVs managed in multiple recipes is a maintenance
pain and recipe for runtime errors.

I'll dig into what the go class is doing that is so different from what I've
been trying.

Can you provide the output of your properly linked docker-proxy, so I can
use it as a reference ?

Bruce

> 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
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


More information about the meta-virtualization mailing list