summaryrefslogtreecommitdiffstats
path: root/recipes-containers
Commit message (Collapse)AuthorAgeFilesLines
...
* lxc: fix systemd init issuesBruce Ashfield2015-04-112-5/+43
| | | | | | | | | | | | | | | | | | To generate a proper systemd.service file we should use lxc's builtin configuration option for the initscript type. To support both sysvinit and systemd, we trigger off the DISTRO var and enable the proper init system accordingly. When properly configured, lxc will create helper scripts and install the service file, so we can delete the explicit copy of the service file and let the default rules trigger and install what is needed. The helper files installed by lxc require a lsb function that is not commonly available in the 'functions' library: "action". To ensure that the helper scripts operate, we create a local action() routine with the expected semantics. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* docker: add sysvinit scriptBruce Ashfield2015-04-082-1/+135
| | | | | | | Adding a basic sysvinit script to docker .. for those that still use sysvinit! Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: upgrade from version from 1.2 to 1.4Nam Ninh2015-03-307-104/+82
| | | | | | | | | Upgrade criu from version from 1.2 to 1.4. criu is the only user of protobuf and only supported on x86 and arm, so limit protobuf support on x86 and arm too. Signed-off-by: Nam Ninh <nam.ninh@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* docker: Disable CCACHE because golang will fail on some hostsJason Wessel2015-03-301-0/+5
| | | | | | | | | | | | | The following is the type of error you see when CCACHE is enabled. | ---> Making bundle: dynbinary (in bundles/1.5.0-dev/dynbinary) | go build runtime/cgo: no buildable Go source files in /opt/proj/tmp/sysroots/x86_64-linux/usr/lib/x86_64-wrs-linux/go/src/pkg/runtime/cgo | WARNING: /opt/proj/tmp/work/core2-64-wrs-linux/docker/1.5.0+git2243e32cbbf1c9809c262a7376d34ca43a7a36dc-r0/temp/do_compile/run.do_compile.19967:1 exit 1 from | DOCKER_GITCOMMIT="2243e32cbbf1c9809c262a7376d34ca43a7a36dc" ./hack/make.sh dynbinary | ERROR: Function failed: do_compile (log file is located at /opt/proj/tmp/work/core2-64-wrs-linux/docker/1.5.0+git2243e32cbbf1c9809c262a7376d34ca43a7a36dc-r0/temp/do_compile/log.do_compile.19967) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* docker-registry: relax python-requests version specificationBruce Ashfield2015-03-301-1/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* docker: avoid fetching dependenciesAmy Fong2015-03-171-17/+32
| | | | | | | | | | | | | | | | | | | | | Docker's build process will clone missing dependencies which circumvents the bitbake fetcher. This is a bad thing in many ways, for example this will not respect BB_NO_NETWORK and DL_DIR settings. To work around this we are able to provide recipes for each of the missing dependencies. The dependencies are all in GO and are required to be added to the sysroot such that the docker build can find them via GOPATH at build time. The docker recipe was updated to add these new packages as dependencies and the explicit clone of go-cli was removed. After these change we are able to complete the build with networking disabled after completing a fetchall. Docker functionality was tested on an image built with these changes and it functions as it did before. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Add cgroup-liteAmy Fong2015-03-172-0/+49
| | | | | | Light-weight package to set up cgroups at system boot Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Package docker-registryAmy Fong2015-03-175-0/+367
| | | | | | Provides repositories of docker images Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Package dockerAmy Fong2015-03-173-0/+144
| | | | | | Adding docker (Linux container runtime) Signed-off-by: Amy Fong <amy.fong@windriver.com>
* lxc: Update support for seccomp on PPC architecturesBogdan Purcareata2015-03-171-9/+20
| | | | | | | Update the LXC recipe with the upstream-applied version of the patch. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: Add support for seccomp on PPC architecturesBogdan Purcareata2015-03-132-0/+101
| | | | | | | | | | | Add the necessary bits to enable seccomp support for LXC running on PPC architectures. libseccomp added support for PPC [1], yet to be applied to Yocto/meta-security. [1] https://github.com/seccomp/libseccomp/tree/working-ppc64 Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: Add PACKAGECONFIG for seccompBogdan Purcareata2015-03-131-0/+1
| | | | | Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: fix reboot for Busybox containersBogdan Purcareata2015-03-104-0/+270
| | | | | | | | | | | | | Busybox powered containers rely on a different signal for reboot - SIGTERM, rather than the default SIGINT. Apply the upstream support adding the infrastructure for defining a custom reboot signal for a container, and default this signal to SIGTERM for Busybox containers. The original patches have been applied on the upstream master LXC branch, and required a minor backport. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: add bridge setup configuration to -setup packageBruce Ashfield2015-01-301-0/+33
| | | | | | | | | | | Now that we have a lxc-setup package, we can start to define networking and other out of the box configuration details for those that opt to install it. These are by no means complete, and won't work for everyone, but they are a start. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: install initscriptsBruce Ashfield2015-01-301-2/+23
| | | | | | | | lxc comes with sysvinit and systemd initscripts that autostart containers and check for required services. So we should be installing and enabling them. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: uprev to 1.0.7Bruce Ashfield2015-01-203-128/+2
| | | | | | | lxc 1.0.7 is available, and integrates two patches that we were carrying against 1.0.6 .. so we do the update, and drop the two busybox patches. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: add PACKAGECONFIG for selinuxWenzong Fan2014-12-031-1/+4
| | | | | | | | | | Add PACKAGECONFIG for 'selinux', otherwise there would be warnings like below: WARN: lxc: lxc rdepends on libselinux, but it isn't a build dependency? Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: add unprivileged Busybox containers supportBogdan Purcareata2014-11-033-0/+127
| | | | | | | | Integrate 2 upstream patches that enable creating unprivileged Busybox containers. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: fixup VPATH buildsBogdan Purcareata2014-10-022-0/+27
| | | | | | | | | Rework patch 5b57bf462b41142deae0479c06f4da8e0b66bb7e [lxc: fixup VPATH builds] since the new version of LXC refactored one of the files and it no longer applies. Provide a fix for what's left. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: Update version to 1.0.6Bogdan Purcareata2014-10-022-48/+2
| | | | | | | Also remove patch file that no longer applies. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: build API docs only when requiredJosep Puigdemont2014-10-011-1/+1
| | | | | Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* criu: add recipe for v1.2 releaseAlexey Firago2014-09-192-0/+81
| | | | | | | | Building and basic functionality verified on Wandboard-dual with linux-wandboard_3.10.17. Signed-off-by: Alexey Firago <alexey_firago@mentor.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: fix RDEPENDS on bashChong Lu2014-09-041-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split a ${PN}-template pkg to put ${datadir}/lxc/templates/, and debash in ${datadir}/lxc/hooks/* since the checkbashisms shows there are no bashism, so use /bin/sh. checkbashisms is from devscripts package: http://packages.ubuntu.com/trusty/devscripts Bash scripts: lxc/usr/share/lxc/hooks/mountcgroups:#!/bin/bash lxc/usr/share/lxc/hooks/ubuntu-cloud-prep:#!/bin/bash lxc/usr/share/lxc/templates/lxc-debian:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-openmandriva:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-archlinux:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-centos:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-plamo:1:#!/bin/bash -eu lxc/usr/share/lxc/templates/lxc-ubuntu-cloud:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-opensuse:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-gentoo:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-altlinux:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-sshd:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-ubuntu:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-cirros:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-busybox:1:#!/bin/bash lxc/usr/share/lxc/templates/lxc-fedora:1:#!/bin/bash Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: fix build/source split for libdir fixBruce Ashfield2014-08-271-1/+1
| | | | | | | Ensure that we modify the libdir in the build directory, not the source directory, to respect the splitting of source and build. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: fix ptest compile errorsZibo Zhao2014-08-271-0/+1
| | | | | | | | | | | | | | While buiding protobuf ptest on Centos 6.4, the build failed with errors: ...libprotobuf.so: undefined reference to `memcpy@GLIBC_2.14' This is due to protobuf.pc still contains /usr/lib64 as libdir which are not good for cross compiling. Replace it with proper sysroot path. Signed-off-by: Zibo Zhao <Zibo.Zhao@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: respect autotools build/source splitBruce Ashfield2014-08-221-4/+6
| | | | | | | Tweak the ptest build rule to look for artifacts in the build directory instead of source, since build and source are split on the latest oe-core. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: add native package to solve self-dependencyKeith Holman2014-08-222-3/+26
| | | | | | | | | | | | The installation of Google Protocol Buffers python header files requires the ability to run the "protoc" compiler on the host to generate the Python header files. This fix adds a native package that builds Google Protocol Buffers for the host machine to provide the compiler that is used to cross-compile the package for the target machine. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: add examples when test feature enabledKeith Holman2014-08-223-4/+128
| | | | | | | | | Google Protocol Buffers includes some basic example applications to show its functionality. This fix installs these examples to the target system when the "test" feature is enabled in the configuration. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: replace spaces with tabs in recipeKeith Holman2014-08-221-7/+7
| | | | | | | | | | The recipe uses 4 spaces instead of tabs when indenting. The recipe style guidelines indicate that tabs should be used instead. This simple fix replaces the spaces with tabs where appropriate in the recipe file. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: add python supportKeith Holman2014-08-221-1/+15
| | | | | | | | | | | The compiler generated by Google Protocol Buffers currently includes support for Python bindings. However, currently the python files required to use the generated files are not included on the system. This fix installs the python header files using python setup-tools after the compiler is built. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* protobuf: update google protocol buffers to 2.5.0Keith Holman2014-08-221-4/+6
| | | | | | | | | | | Upgrade Google Protocol Buffers to version 2.5.0. The previous version 2.4.1 is getting quite old (released April 2011). The newer version provides bug fixes and more functionality. This version adds some speed optimization and the ability to allow multiple enum symbols to have the same value. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: Uprev to 1.0.5Maxin B. John2014-07-294-115/+2
| | | | | | | | Update lxc to latest available version: 1.0.5 Remove already upstreamed patches. Signed-off-by: Maxin B. John <maxin.john@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: fixup VPATH buildsMark Asselstine2014-05-082-0/+46
| | | | | | | | | | | Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools: Enable separate builddir by default] enforced separate build directories, which is supported by automake. Unfortunately lxc had a few make directives which didn't take into account VPATH builds so fixing them up here to allow the lxc build to complete successfully. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: Update version to 1.0.1Mihaela Sendrea2014-04-151-2/+2
| | | | | Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: Add ptest supportMihaela Sendrea2014-04-153-2/+51
| | | | | | | Install lxc test suite and run it as ptest. Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: bug fixes from upstreamBogdan Purcareata2014-04-014-1/+112
| | | | | | | | | | | | Adding a couple of upstream fixes for lxc: - follow symlinks when determining if Busybox is statically linked - don't fail for lxc.network.type = none - don't fail if no default macvlan mode is specified More details are available in the individual patches. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* Update Linux Containers to lxc-1.0.0Josep Puigdemont2014-02-289-310/+3
| | | | | Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: add missing patchBruce Ashfield2014-02-181-0/+27
| | | | | | As reported by Chris Larson, the recipe went in, but not the patch. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: always strdup lxc.rootfs.mountJosep Puigdemont2014-02-111-0/+1
| | | | | | | | | | | | The reason is that the generic code which handles reading lxc.rootfs.mount always frees the old value if not NULL. So without this setting lxc.rootfs.mount = /mnt causes segfault. This is a backport for lxc-0.9.0 (dora) of the same fix found in upstream's master, see commits 54c30e29 and 53f3f048. Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc/autoconf:: allow subdir objectsBruce Ashfield2014-01-312-0/+36
| | | | | | | | | | | | | autoconf-1.14 will fail to configure lxc with the following warning (and hence error): | automake: warnings are treated as errors | src/lxc/Makefile.am:79: warning: source file '../include/openpty.c' is in a subdirectory, | src/lxc/Makefile.am:79: but option 'subdir-objects' is disabled So we tell autoconf that subdir objects are fine .. and the issue is solved. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: add missing inheritMark Asselstine2013-12-181-1/+1
| | | | | | | | | | | | | | lxc's configure script makes use of pkg-config so we need to inherit pkgconfig or else we may see an error like ./configure: line 5315: syntax error near unexpected token `PYTHONDEV,' ./configure: line 5315: ` PKG_CHECK_MODULES(PYTHONDEV, python3 >= \ 3.2,,AC_MSG_ERROR([You must install python3-dev]))' during configure. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: kill use of susv2 'head' argsChristopher Larson2013-12-102-0/+47
| | | | | | | | Without enabling INCLUDE_SUSv2 in busybox, we need to use head's -n argument, rather than -#. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: correct use of PN vs. BPN to fix multilib buildsMark Asselstine2013-11-241-2/+2
| | | | | | | | | BPN should be used in place of PN otherwise the fetcher will attempt to download a file with the multilib prefix,and fail, and S will not be what is expected, causing patching and other failures. Signed-off-by: Mark Asselstine <asselsm@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* LXC: setup_netdev: re-read ifindex in LXC_NET_PHYS caseBogdan Purcareata2013-11-152-2/+52
| | | | | | | | | | | | Patch to fix interface netns transition when assigning a physical interface to a container. Pushed to the upstream LXC repo, to be included in future versions of LXC. Further details in included patch description. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: fixed URL for tarballJonatan Pålsson2013-10-211-1/+1
| | | | Signed-off-by: Jonatan Pålsson <jonatan.palsson@pelagicore.com>
* lxc: create lxc cache directoryMark Asselstine2013-07-131-1/+17
| | | | | | | | | | Many LXC templates expect the cache directory to exist and use it without necessarily checking if it exists. Normally the Makefile would create this directory but since /var/cache is volatile we must use the volatile system to create this directory at boot, or when the package is installed. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: use four fields for PACAKGECONFIG[] infoJoe Slater2013-05-241-2/+2
| | | | | | | | To be safe, we specifiy all four possible fields even if some trailing ones are null. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: specify distroJoe Slater2013-05-241-1/+5
| | | | | | | | Do not query the host to find out our distro. We specify the bitbake variable ${DISTRO} in order to get the desired runtime default config file. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc-clone: don't let LXC_PATH end in failureBogdan Purcareata2013-05-172-0/+30
| | | | | | | | | This patch has been included in the upstream repo as the first patch after LXC 0.9.0 release. Including it in meta-virtualization for proper functioning of the lxc-clone command. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc-busybox: check when bind-mounting host libdirsBogdan Purcareata2013-05-152-0/+45
| | | | | | | | | | | | The patch checks bind mounting lib directories when starting a busybox container on a 64bit platform. Some entries in the host filesystem are not present but the busybox template expects them to be there, and thus container start fails. Please see further details in added patch description. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>