Blame Dockerfile

112caf
FROM centos:7
112caf
112caf
MAINTAINER Brian Stinson <brian@bstinson.com>
112caf
112caf
USER root
112caf
RUN yum -y install sudo epel-release
112caf
RUN yum -y install koji python2-koji
112caf
112caf
# We need this until CentOS releases CR or 7.6.1810
112caf
RUN yum -y install https://kojipkgs.fedoraproject.org//packages/libmodulemd/1.7.0/1.el7/x86_64/libmodulemd-1.7.0-1.el7.x86_64.rpm
112caf
112caf
RUN yum -y install git python-devel krb5-devel rpmdevtools python-centos rpm-python python-setuptools @development PyYAML libmodulemd python2-modulemd python2-cccolutils
112caf
112caf
RUN git clone -b centpkg-inbound https://pagure.io/forks/bstinson/rpkg.git /src/rpkg
112caf
RUN git clone -b develop https://bitbucket.org/bstinsonmhk/centpkg.git /src/centpkg
112caf
RUN git clone -b master https://pagure.io/fedpkg.git /src/fedpkg
112caf
ADD https://raw.githubusercontent.com/bstinsonmhk/centos-packager/master/SOURCES/cbs-koji.conf /etc/koji.conf.d/cbs-koji.conf
112caf
112caf
WORKDIR /src/rpkg
112caf
RUN python setup.py install
112caf
112caf
WORKDIR /src/centpkg
112caf
RUN python setup.py install
112caf
112caf
WORKDIR /src/fedpkg
112caf
RUN python setup.py install
112caf
112caf
RUN useradd -m centpkg-user
112caf
RUN echo 'centpkg-user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/centpkg-user
112caf
112caf
USER centpkg-user
112caf
WORKDIR /home/centpkg-user
112caf
CMD /bin/bash -l