Docker image to build RPM packages
This project will be configured to automatically build in DockerHub. So to get it locally you can use docker pull command.
docker pull marceldiass/rpm-builder
To use the image to should provide the RPM sources and a spec file.
Add the sources or binary package do you want to pack into the RPM to rpmbuild/SOURCES. And create the RPM spec file file in the folder rpmbuild/SPECS
.
docker run --rm -ti -v "$(PWD)/rpmbuild:/root/rpmbuild" -e SPEC_FILE=test.spec marceldiass/rpm-builder
When the build ran without problems the RPM package will be located at rpmbuild/RPMS
PRs accepted.
MIT © Marcel Dias