FROM centos:8 MAINTAINER Brian Stinson USER root RUN yum -y install sudo epel-release RUN yum -y install koji python2-koji RUN yum -y install git python-devel krb5-devel rpmdevtools rpm-python python-setuptools @development PyYAML libmodulemd RUN git clone -b centpkg-inbound https://pagure.io/forks/bstinson/rpkg.git /src/rpkg RUN git clone -b develop https://bitbucket.org/bstinsonmhk/centpkg.git /src/centpkg RUN git clone -b master https://pagure.io/fedpkg.git /src/fedpkg ADD https://raw.githubusercontent.com/bstinsonmhk/centos-packager/master/SOURCES/cbs-koji.conf /etc/koji.conf.d/cbs-koji.conf WORKDIR /src/rpkg RUN python setup.py install WORKDIR /src/centpkg RUN python setup.py install WORKDIR /src/fedpkg RUN python setup.py install RUN useradd -m centpkg-user RUN echo 'centpkg-user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/centpkg-user USER centpkg-user WORKDIR /home/centpkg-user CMD /bin/bash -l