Sign inSign up

robpol86/dockerrpmbuild

By robpol86

Updated over 9 years ago

Dockerfiles used for building RPM files for different distros/versions.

Image
0

713

robpol86/dockerrpmbuild repository overview

Docker RPM Build Images

Minimal Docker Images for building RPMs from .spec or .src.rpm files for different RedHat-based Linux distributions.

Available images:

Usage

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:

  • /RPMS
  • /SOURCES
  • /SPECS
  • /SRPMS

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

Tag summary

Content type

Image

Digest

Size

292.8 MB

Last updated

over 9 years ago

docker pull robpol86/dockerrpmbuild:centos6