Public Repository

Last pushed: 2 years ago
Short Description
Minimal docker to isolate rpmbuild.
Full Description
# rpmbuild in docker for isolation in CI/CD
# VERSION       0.0.1

FROM centos:centos6
MAINTAINER Neelesh Pateriya

# Install up-to-date epel rpm repository
RUN yum -y install
# Install rpmdevtools to use rpmdev-setuptree command
RUN yum -y install rpmdevtools
# Set default `docker run` command behavior
CMD /usr/sbin/sshd -D
# Sample to run rpm build 
# docker run -v /root/build:/root/rpmbuild npateriya/cicd:rpmbuild  rpmbuild --define "_topdir /root/rpmbuild" -bs  /root/rpmbuild/SPECS/ppm.spec
Docker Pull Command