sgallagh / centos / centpkg

Forked from centos/centpkg 3 years ago
Clone
Brian Stinson e206a7
FROM centos:8
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
Brian Stinson e206a7
RUN yum -y install git python-devel krb5-devel rpmdevtools rpm-python python-setuptools @development PyYAML libmodulemd
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