/docker-rpmbuild

Docker wrapper for rpmbuild

Primary LanguagePythonMIT LicenseMIT

docker-rpmbuild

Builds RPMs inside a docker container. A Dockerfile and build context are dynamically generated to construct the RPM development environment. Then rpmbuild -ba is executed and the RPM results are extracted.

Installation

$ pip install git+https://github.com/shawnsi/docker-rpmbuild

Build from SPEC

Build a simple spec file and source archive using rpmbuild in a docker image.

$ docker-rpmbuild build --spec <path-to-spec> --source <path-to-source> <image>

Build from SRPM

Rebuild an existing SRPM package.

$ docker-rpmbuild rebuild --srpm <path-to-srpm> <image>