Dockerfiles used for building RPM files for different distros/versions.
713
Minimal Docker Images for building RPMs from .spec or .src.rpm files for different RedHat-based Linux distributions.
Available images:
To use one of the images to build your RPM file run the following command (using fedora25 as an example):
mkdir out
sudo docker run -v $PWD:/SPECS:Z -v $PWD/out:/RPMS:Z robpol86/dockerrpmbuild:fedora25
This assumes your .spec file and any additional local sources (remote/http sources will be downloaded by the container automatically) are in the current working directory. If you have additional local sources you can bind additional volumes. Available volumes are:
Note if you omit the :Z suffixes from all of the volumes when running the docker run command you may run into
SELinux permission issues. More info:
http://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker
Content type
Image
Digest
Size
292.8 MB
Last updated
over 9 years ago
docker pull robpol86/dockerrpmbuild:centos6