norrs / docker-rpmbuild

Docker wrapper for rpmbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

Docker wrapper for rpmbuild

License:MIT License


Languages

Language:Python 100.0%