lrossett / centos / centpkg

Forked from centos/centpkg 2 years ago
Clone
Blob Blame Raw
FROM centos:7

MAINTAINER Brian Stinson <brian@bstinson.com>

USER root
RUN yum -y install sudo epel-release
RUN yum -y install koji python2-koji

# We need this until CentOS releases CR or 7.6.1810
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

RUN yum -y install git python-devel krb5-devel rpmdevtools python-centos rpm-python python-setuptools @development PyYAML libmodulemd python2-modulemd python2-cccolutils

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