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

avoiding extracting rpmdb from base image #4

Open
cgwalters opened this issue Apr 23, 2024 · 3 comments
Open

avoiding extracting rpmdb from base image #4

cgwalters opened this issue Apr 23, 2024 · 3 comments

Comments

@cgwalters
Copy link

Extract installed packages from a container image. This would be used for layered images.

I think we should instead accept one of several declarative input formats. This is discussed in hermetoproject/cachi2#465

Trying to extract after the fact just makes everything circular.

@lubomir
Copy link
Contributor

lubomir commented Apr 23, 2024

This is not extraction of what to resolve. It's about figuring out what is already installed in the base image (i.e. copying out the rpm db). That can not easily be declared elsewhere (unless you work with a very narrow subset of base images).
Another alternative is to run the depsolving inside the container, which gets complicated quite quickly.

@cgwalters
Copy link
Author

cgwalters commented Apr 23, 2024 via email

@lubomir
Copy link
Contributor

lubomir commented Apr 23, 2024

I completely agree that there are better ways to solve this problem as long as the base image is cooperating.

The current implementation is problematic on many fronts (hard to run in container, inefficient…).

@cgwalters cgwalters changed the title "Extract installed packages from a container image. This would be used for layered images." avoiding extracting rpmdb from base image Apr 23, 2024
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

No branches or pull requests

2 participants