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 http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# 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
Owner
npateriya

Comments (0)