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

Mock as tool to prepare container image with rpm-build only #1482

Open
xsuchy opened this issue Oct 3, 2024 · 1 comment · May be fixed by #1489
Open

Mock as tool to prepare container image with rpm-build only #1482

xsuchy opened this issue Oct 3, 2024 · 1 comment · May be fixed by #1489
Assignees

Comments

@xsuchy
Copy link
Member

xsuchy commented Oct 3, 2024

Short description of the problem

Mock nowadays prepares a buildroot environment and then calls rpmbuild inside this environment. It would be useful if we could separate these two steps and use Mock to prepare the environment and create the container image. Optionally upload this container image to a registry.
This container has resolved and installed build dependencies and installed rpm-build. And it can be consumed by other tooling or by another Mock command (described in #1159)

This image should be created in the prebuild phase. We should likely create a new phase, e.g., preimage_create.

And I think we should allow the user to stop after the image is created and not continue with the rest of the build process.

@praiskup
Copy link
Member

praiskup commented Oct 3, 2024

This image should be created in the prebuild phase.

There's the new postdeps hook.

@nikromen nikromen moved this from Needs triage to In Progress in CPT Kanban Oct 7, 2024
praiskup added a commit to praiskup/mock that referenced this issue Oct 22, 2024
@praiskup praiskup linked a pull request Oct 22, 2024 that will close this issue
praiskup added a commit to praiskup/mock that referenced this issue Oct 22, 2024
praiskup added a commit to praiskup/mock that referenced this issue Oct 29, 2024
praiskup added a commit to praiskup/mock that referenced this issue Oct 29, 2024
praiskup added a commit to praiskup/mock that referenced this issue Oct 29, 2024
praiskup added a commit to praiskup/mock that referenced this issue Oct 31, 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

Successfully merging a pull request may close this issue.

2 participants