<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-virtualization.git/classes, branch warrior</title>
<subtitle>Mirror of git.yoctoproject.org/meta-virtualization</subtitle>
<id>https://git.enea.com/cgit/linux/meta-virtualization.git/atom?h=warrior</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-virtualization.git/atom?h=warrior'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/'/>
<updated>2019-02-27T16:46:25+00:00</updated>
<entry>
<title>containers: introduce image-oci</title>
<updated>2019-02-27T16:46:25+00:00</updated>
<author>
<name>Bruce Ashfield</name>
<email>bruce.ashfield@gmail.com</email>
</author>
<published>2019-02-27T15:51:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=29c60173e2326ba970d15e7b419601f92f447166'/>
<id>urn:sha1:29c60173e2326ba970d15e7b419601f92f447166</id>
<content type='text'>
This image class creates an oci image spec directory from a generated
rootfs. The contents of the rootfs do not matter (i.e. they need not be
container optimized), but by using the container image type and small
footprint images, we can create directly executable container images.

Once the tarball (or oci image directory) has been created of the OCI
image, it can be manipulated by standard tools. For example, to create a
runtime bundle from the oci image, the following can be done:

Assuming the image name is "container-base":

  If the oci image was a tarball, extract it (skip, if a directory is being directly used)
    % tar xvf container-base-&lt;arch&gt;-&lt;stamp&gt;.rootfs-oci-latest-x86_64-linux.oci-image.tar

  And then create the bundle:
    % oci-image-tool create --ref name=latest container-base-&lt;arch&gt;-&lt;stamp&gt;.rootfs-oci container-base-oci-bundle

  Or to copy (push) the oci image to a docker registry, skopeo can be used (vary the
  tag based on the created oci image:

    % skopeo copy --dest-creds &lt;username&gt;:&lt;password&gt; oci:container-base-&lt;arch&gt;-&lt;stamp&gt;:latest docker://zeddii/container-base

The following image variables are available to customize the details
of the constructed image (defaults as shown):

   OCI_IMAGE_AUTHOR ?= "${PATCH_GIT_USER_NAME}"
   OCI_IMAGE_AUTHOR_EMAIL ?= "${PATCH_GIT_USER_EMAIL}"

   OCI_IMAGE_TAG ?= "latest"
   OCI_IMAGE_RUNTIME_UID ?= ""

   OCI_IMAGE_ARCH ?= "${TARGET_ARCH}"
   OCI_IMAGE_SUBARCH ?= "${@oci_map_subarch(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"

   OCI_IMAGE_ENTRYPOINT ?= "sh"
   OCI_IMAGE_ENTRYPOINT_ARGS ?= ""
   OCI_IMAGE_WORKINGDIR ?= ""

   //List of ports to expose from a container running this image:
   //PORT[/PROT]
   //  format: &lt;port&gt;/tcp, &lt;port&gt;/udp, or &lt;port&gt; (same as &lt;port&gt;/tcp).
   OICI_IMAGE_PORTS ?= ""

   // key=value list of labels
   OCI_IMAGE_LABELS ?= ""
   // key=value list of environment variables
   OCI_IMAGE_ENV_VARS ?= ""

Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@gmail.com&gt;
</content>
</entry>
<entry>
<title>sanity-meta-virt: Watch for SanityCheck event</title>
<updated>2017-10-13T01:59:51+00:00</updated>
<author>
<name>Paul Barker</name>
<email>pbarker@toganlabs.com</email>
</author>
<published>2017-10-12T16:49:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=638ba96208d28e7f7dc3c23efea2e017ea0b7a28'/>
<id>urn:sha1:638ba96208d28e7f7dc3c23efea2e017ea0b7a28</id>
<content type='text'>
The ConfigParsed event is raised multiple times during a build which resulted
in the sanity warning appearing up to 4 times per build. Instead we should be
watching for the SanityCheck event (this is what the sanity checks in oe-core
watch for).

Signed-off-by: Paul Barker &lt;pbarker@toganlabs.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>sanity-meta-virt: Make skip variable name layer specific</title>
<updated>2017-10-13T01:59:51+00:00</updated>
<author>
<name>Paul Barker</name>
<email>pbarker@toganlabs.com</email>
</author>
<published>2017-10-12T16:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=1e4530c283015d0874765b7dd69c55b843b9bee2'/>
<id>urn:sha1:1e4530c283015d0874765b7dd69c55b843b9bee2</id>
<content type='text'>
The variable used to skip the sanity check should be named in a layer specific
way. This will ensure there is no confusion if other layers use a similar sanity
check.

Signed-off-by: Paul Barker &lt;pbarker@toganlabs.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>sanity-meta-virt.bbclass: add class for bbappend files checking</title>
<updated>2017-10-02T13:39:26+00:00</updated>
<author>
<name>Chen Qi</name>
<email>Qi.Chen@windriver.com</email>
</author>
<published>2017-09-30T03:06:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=bfba140b8353665e1b586c257982c4cb3f496ec3'/>
<id>urn:sha1:bfba140b8353665e1b586c257982c4cb3f496ec3</id>
<content type='text'>
Add a new class, sanity-meta-virt.bbclass, to check for whether necessary
settings are available for bbappend files in this layer to be effective,
and warn users if not.

In addition, a variable SKIP_SANITY_BBAPPEND_CHECK is added to enable users
to explicitly skip the checking to avoid unwanted warnings.

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>housekeeping: swap out go-osarchmap in favor of goarch</title>
<updated>2017-04-12T03:09:01+00:00</updated>
<author>
<name>Mark Asselstine</name>
<email>mark.asselstine@windriver.com</email>
</author>
<published>2017-04-11T17:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=a20d51d5c60f1ae3ce8784d5db044af28006d115'/>
<id>urn:sha1:a20d51d5c60f1ae3ce8784d5db044af28006d115</id>
<content type='text'>
Continue work to use go infra in oe-core instead of the support for go
previously found in meta-virt. This is a 1:1 drop in replacement and
removes one more go piece from meta-virt in favor of the common
support found in oe-core.

Signed-off-by: Mark Asselstine &lt;mark.asselstine@windriver.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>Remove True option to getVar calls</title>
<updated>2017-01-03T15:28:33+00:00</updated>
<author>
<name>Paul Barker</name>
<email>paul@paulbarker.me.uk</email>
</author>
<published>2017-01-01T22:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=e64f378b93e6fed8f5e8a019e1c4a82bdad4fe0c'/>
<id>urn:sha1:e64f378b93e6fed8f5e8a019e1c4a82bdad4fe0c</id>
<content type='text'>
getVar() now defaults to expanding by default.

Signed-off-by: Paul Barker &lt;paul@paulbarker.me.uk&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>go-osarchmap: Skip golang recipes for unsupported architectures</title>
<updated>2017-01-03T15:28:33+00:00</updated>
<author>
<name>Paul Barker</name>
<email>paul@paulbarker.me.uk</email>
</author>
<published>2017-01-01T22:21:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=b0a72cd343c9bdb38d01f6dbf0c5ac3d55c769dd'/>
<id>urn:sha1:b0a72cd343c9bdb38d01f6dbf0c5ac3d55c769dd</id>
<content type='text'>
Building any recipe for a mips-based machine like arduino-yun currently leads
to errors in go_map_arch(). Instead, errors should only be raised if a recipe
which uses golang is built. This is achieved using the same error handling seen
in recipes-extended/xen.

Signed-off-by: Paul Barker &lt;paul@paulbarker.me.uk&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>go-cross: uprev to 1.5.2</title>
<updated>2016-04-19T19:51:10+00:00</updated>
<author>
<name>Zongchun Yu</name>
<email>zongchun.yu@nxp.com</email>
</author>
<published>2016-04-05T09:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-virtualization.git/commit/?id=12c601cd2df52ad123b337647eeb990f46422a25'/>
<id>urn:sha1:12c601cd2df52ad123b337647eeb990f46422a25</id>
<content type='text'>
* Add go-native as build bootstrap for go-cross.
* Upgrade go-cross to v1.5.2

Signed-off-by: Zongchun Yu &lt;zongchun.yu@nxp.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
</feed>
