This is a tool that you can use to create the RPM lockfiles that are used by Hermeto. Two main use cases:
- For users who have had difficulty using the RPM lockfile prototype tool
- For multi-stage builds, automating the combination of rpms.lock.yaml files between stages
-
Create a new branch on this repo.
-
Edit
config.yamlwith the settings that you want:arches- specify which cpu architecturesstages- if the build dockerfile has multiple stages, include the stages that install packages via DNF.image- Add the image URI for each relevant stagepackages- Add the packages that are installed in each stage.
Example config:
arches: - x86_64 - s390x stages: - image: registry.redhat.io/ubi8/go-toolset:1.22@sha256:a1a37882bbcf1c0f1115d478d5ea9f74b496b8c753d5e4e431a70786e2dbcbfc packages: - cmake - clang - openssl - image: registry.redhat.io/ubi8/ubi-minimal@sha256:33161cf5ec11ea13bfe60cad64f56a3aa4d893852e8ec44b2fd2a6b40cc38539 packages: - ca-certificates - wget -
Commit changes to your branch
-
Go to the RPM lockfile runner actions page and run the workflow, selecting your specific branch
-
After it is complete, you should have an
rpms.lock.yamlandubi.repocommited to your branch that you can copy to wherever you need