Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging: Build coco-guest-components #8933

Merged

Conversation

fidencio
Copy link
Member

Right now we're adding the support to build the coco-guest-components on our side, and also to provide the resulting tarball to the rootfs (although we're not doing that yet, and that will be done by #8870 later on).

In order to test it, please run a make coco-guest-components-tarball in your favourite architecture, as I could only test it out on x86_64.

There are more details in each commit message, so, please, take a look at those as well.

Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of minor points, but the code looks good to me. Thanks

tools/packaging/scripts/lib.sh Outdated Show resolved Hide resolved
tools/packaging/scripts/lib.sh Outdated Show resolved Hide resolved
The Confidential Containers guest-components will, in the very short
future, be part of the Kata Containers rootfs that's used by the
Confidential Containers usecase.

This commit introduces the ability to, standalone, build the component
locally and as part of our CI, and this can be done by calling:
`make coco-guest-components-tarball`

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Signed-off-by: Linda Yu <linda.yu@intel.com>
Co-authored-by: stevenhorsman <steven@uk.ibm.com>
Co-authored-by: Jakob Naucke <jakob.naucke@ibm.com>
Co-authored-by: Wang, Arron <arron.wang@intel.com>
Co-authored-by: zhouliang121 <liang.a.zhou@linux.alibaba.com>
Co-authored-by: Alex Carter <alex.carter@ibm.com>
Co-authored-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Co-authored-by: Xynnn007 <xynnn@linux.alibaba.com>
@fidencio fidencio force-pushed the topic/package-coco-guest-components branch from f6724cb to 2ea7fa4 Compare January 26, 2024 18:36
fidencio and others added 3 commits January 26, 2024 19:58
This env ver will serve us to pass the Confidential Containers
guest-components tarball to the rootfs builder, which will then just
unpack the content into the rootfs.

Fixes: kata-containers#8848 -- part I

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Signed-off-by: Linda Yu <linda.yu@intel.com>
Co-authored-by: stevenhorsman <steven@uk.ibm.com>
Co-authored-by: Jakob Naucke <jakob.naucke@ibm.com>
Co-authored-by: Wang, Arron <arron.wang@intel.com>
Co-authored-by: zhouliang121 <liang.a.zhou@linux.alibaba.com>
Co-authored-by: Alex Carter <alex.carter@ibm.com>
Co-authored-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Co-authored-by: Xynnn007 <xynnn@linux.alibaba.com>
We need to actually check that the env var is not empty. :-)
This was introduced by 8307718.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
Otherwise those would be unbound if not passed.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
@fidencio fidencio force-pushed the topic/package-coco-guest-components branch from 2ea7fa4 to 98dc2d4 Compare January 26, 2024 18:58
@fidencio
Copy link
Member Author

/test

Copy link
Member

@gkurz gkurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @fidencio !

@gkurz gkurz merged commit d687b60 into kata-containers:main Jan 29, 2024
279 of 290 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/large Task of significant size
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants