-
Notifications
You must be signed in to change notification settings - Fork 519
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
generate bottlerocket rpm inventory file to share with host containers #1996
Conversation
3e30dbf
to
0dd5256
Compare
Do you mind sharing an example inventory file as a gist? |
Out of curiosity, is there any chance that this might be a way to make some progress toward: #848 ? |
This particular PR is to help support SSM inventories, but the file is generic enough to be used elsewhere. Separately, we are working with AWS Inspector to add support for Bottlerocket. |
This adds logic to `rpm2img` to generate an inventory of the installed rpms to `/usr/share/bottlerocket/application-inventory.json`.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description of changes:
This grants host containers context to the underlying Bottlerocket OS packages by generating a JSON-formatted inventory file at the time of RPM install and mounting it as read-only to
/var/lib/bottlerocket/inventory/application.json
.Testing done:
aws-k8s-1.21
instance.cat
mounted file in both the control and admin host containers.Example output:
https://gist.github.com/jpculp/c1aa3142ce8917eeec47fc170f74873d
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.