From 112caffe19f3f96b62de5733ad4c64f81db76fc5 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 15 2018 23:10:58 +0000 Subject: add a dockerfile --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..43d7b10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM centos:7 + +MAINTAINER Brian Stinson + +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