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
Auto populate the container version based on a "primary rpm" version #963
Comments
This should be from either the koji build or destination tag of the given koji target. |
Continuing discussion over here. With post plugin, you would be 100% sure on the version. It's possible that querying koji could result into getting a different package than koji predicted? Also what about images which don't utilize koji for getting packages? When they get packages from dedicated repositories. The implementation as a post build plugin could look like this:
|
@TomasTomecek, the I wanna say that the safest way would be to do as a prebuild plugin, then verify it was correctly set, say in I think |
Oh! It has to be done as a prebuild plugin if you want to leverage |
+1 |
I see how the I ll look at some |
How would this work for container-first container images, where there may not be any RPMs at all? |
Closing due to lack of interest and activity. If you're still interested feel free to reopen it. |
After opening [0] in koji-containerbuild it seems that atomic-reactor is a better place to implement this feature.
After briefly looking at the pre_bump_release plugin, I think the best way would be to create a similar plugin.
My inital thoughts are :
Dockerfile to have a new label that stores the primary rpm used to populate the version of the container for example "rpm.version". (we might be able to reuse the component label but having a new label brings flexibility)
"rpm.version" to be added to the LABEL_TYPE_VERSION so a Dockerfile with only "rpm.version" will be valid. If this label is not used then we still need to provide the Version label.
Add a new plugin in atomic-reactor (pre-build)
[0] - containerbuildsystem/koji-containerbuild#95
The text was updated successfully, but these errors were encountered: