| |
@@ -1,6 +1,8 @@
|
| |
FROM registry.fedoraproject.org/fedora:35
|
| |
MAINTAINER copr-devel@lists.fedorahosted.org
|
| |
|
| |
+ ARG ADDITIONAL_COPR_REPOSITORIES="@copr/copr-dev"
|
| |
+
|
| |
ENV export LANG=en_US.UTF-8
|
| |
ENV PYTHONPATH="/usr/share/copr/"
|
| |
|
| |
@@ -9,7 +11,11 @@
|
| |
LANG=en_US.UTF-8
|
| |
|
| |
# base packages
|
| |
- RUN dnf -y update && \
|
| |
+ RUN set -ex ; \
|
| |
+ test -z "${ADDITIONAL_COPR_REPOSITORIES}" \
|
| |
+ || dnf -y install dnf-plugins-core \
|
| |
+ && for repo in $ADDITIONAL_COPR_REPOSITORIES ; do dnf -y copr enable $repo; done ; \
|
| |
+ dnf -y update && \
|
| |
dnf -y install htop \
|
| |
make \
|
| |
wget \
|
| |
@@ -30,6 +36,7 @@
|
| |
rng-tools \
|
| |
# for unbuffer package
|
| |
expect \
|
| |
+ && dnf -y install copr-backend \
|
| |
&& dnf clean all
|
| |
|
| |
# needed to be able to ping
|
| |
@@ -43,7 +50,7 @@
|
| |
mkdir /root/.ssh && chmod 700 /root /root/.ssh
|
| |
|
| |
# setup copr user
|
| |
- RUN useradd copr && \
|
| |
+ RUN set -x ; \
|
| |
echo 'copr:passwd' | chpasswd && \
|
| |
echo 'copr ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers && \
|
| |
mkdir -p /home/copr/.ssh && chmod 700 /home/copr /home/copr/.ssh && \
|
| |
@@ -53,10 +60,6 @@
|
| |
cat /home/copr/.ssh/id_rsa.pub >> /home/copr/.ssh/authorized_keys && \
|
| |
chown copr:copr -R /home/copr
|
| |
|
| |
- # Install copr-backend package
|
| |
- RUN dnf -y install copr-backend && \
|
| |
- dnf clean all
|
| |
-
|
| |
# system setup for copr-backend
|
| |
RUN usermod -a -G mock copr
|
| |
|
| |