Simple image to create SRPMS/RPMS. Installed packages
rpmbuild)spectool)The container runs as user rpmbuild, but has full sudo rights for example to install dependencies (if necessary).
The image is mainly intended to create SRPMs on Travis-CI which then can be build on copr.
Suppose your rpm build tree is located at /home/myuser/rpmbuild/
docker run -it --rm \
-v /home/myuser/rpmbuild/:/home/rpmbuild/rpmbuild \
mgruener/rpmbuild \
spectool -R -g rpmbuild/SPECS/foobar.spec
This would download all Sources / Patches references in the foobar.spec spefile to /home/myuser/rpmbuild/SOURCES
Executing
docker run -it --rm \
-v /home/myuser/rpmbuild/:/home/rpmbuild/rpmbuild \
mgruener/rpmbuild \
rpmbuild -bs rpmbuild/SPECS/foobar.spec
would then create a foobar*.src.rpm SRPM in /home/myuser/rpmbuild/SRPMS.
Content type
Image
Digest
sha256:fd367b14a…
Size
113.6 MB
Last updated
over 8 years ago
docker pull mgruener/rpmbuild