Just another CentOS image to build RPM packages
350
This image is intended to create RPM packages for ClearOS apps. Just for testing purposes, but it probably can help other people wishing create RPM packages without too suffering.
Mount your source folder and the folder where RPM package will be dropped. By default, they are dropped on /root/rpmbuild/RPMS folder inside container. There are also /root/rpmbuild/SRPMS.
docker run --rm \
-v '/home/fabio/Work/avantech/app-syncthing':'/app' \
-v '/home/fabio/Sync/fabio.myshared':'/root/rpmbuild/RPMS/noarch' \
montefuscolo/centos-rpmbuild \
run-rpmbuild -s /app/packaging/app-syncthing.spec -f /app
I would like to integrate it with TravisCI, so any enhancements, suggestions and tips are welcome.
docker pull montefuscolo/centos-rpmbuild:latest