Forked from lest/centos7-rpm-builder-docker to add support in for Centos6. Nearly all the work was done by Sergey Nartimov (lest).
docker pull quay.io/lest/centos6-rpm-build
docker pull quay.io/lest/centos7-rpm-build
Please feel free to open a PR against the staging branch and open issues for any problems.
There is an issue where you have to re-chown files after running make test
. This is something to do with user IDs when Docker is using a mounted volume. This has been partially resolved and now they are re-chowned after the build process.
Example usage:
docker run --rm \
-v ${PWD}:/rpmbuild \
lest/centos-rpm-builder:8 \
bin/build-spec SPECS/my-package.spec
Example usage:
docker run --rm \
-v ${PWD}:/rpmbuild \
lest/centos6-rpm-builder \
bin/build-spec SPECS/my-package.spec