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

Retain /lib/apk/db for SBOM tools #3913

Merged
merged 1 commit into from Mar 14, 2023

Conversation

eriknordmark
Copy link
Contributor

- What I did
This allows SBOM tools to look at /lib/apk/db/installed to determine which package versions are included in the container. This should probably be applied across all of the linuxkit containers.

- How I did it

Preserve /etc/apk and /lib/apk by copying it to the container

- How to verify it

Inspect the produced containers to check that they have /lib/apk/db/installed

- Description for the changelog
Retain /lib/apk/db for SBOM tools

@@ -12,3 +12,4 @@ COPY --from=containerd-dev /usr/bin/containerd /usr/bin/ctr /usr/bin/containerd-
COPY --from=alpine /usr/share/zoneinfo/UTC /etc/localtime
COPY --from=alpine /etc/init.d/ /etc/init.d/
COPY etc etc/
COPY lib/apk lib/apk/
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you meant this to be COPY --from=build /lib/apk /lib/apk

Same for the others

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@deitch updated PR with --from

This allows SBOM tools to look at /lib/apk/db/installed to determine
which package versions are included in the container. This should
probably be applied across all of the linuxkit containers.

Signed-off-by: eriknordmark <erik@zededa.com>
@deitch
Copy link
Collaborator

deitch commented Mar 14, 2023

Let CI run.

@deitch deitch merged commit c79558c into linuxkit:master Mar 14, 2023
@deitch
Copy link
Collaborator

deitch commented Mar 14, 2023

Done and merged. Give it about 10-15 minutes and new images should be pushed out automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants