FROM centos:7 WORKDIR /build RUN yum -y update RUN yum -y install epel-release yum-utils # Required for the latest python-pungi RUN yum-config-manager --add-repo https://kojipkgs.fedoraproject.org/repos-dist/epel7Server-infra/latest/x86_64/ RUN yum -y install \ --nogpgcheck \ --setopt=deltarpm=0 \ --setopt=install_weak_deps=false \ --setopt=tsflags=nodocs \ bash \ createrepo_c \ fedmsg \ fedmsg-hub \ gcc \ git \ kobo \ kobo-rpmlib \ python-backports-ssl_match_hostname \ python-dnf \ python-dogpile-cache \ python-enum34 \ python-flake8 \ python-flask \ python-flask-migrate \ python-flask-sqlalchemy \ python-funcsigs \ python-futures \ python-koji \ python-ldap3 \ python-mock \ python-munch \ python-pip \ python-prometheus_client \ python-psycopg2 \ python-requests \ python-six \ python-solv \ python-sqlalchemy \ python-tox \ python2-distro \ python2-celery \ python2-libmodulemd2 \ python2-pyyaml \ python2-pungi \ rpm-build \ rsync \ && yum clean all # We currently require newer versions of these Python packages for the tests. # more-itertools is required by pytest, but versions 6.0.0 and up aren't Python 2 compatible RUN pip install --upgrade "pytest<5.0" flake8 tox "more-itertools<6.0.0" pytest-cov "importlib_metadata<=2.0.0" "configparser<5" "importlib_resources<4.0.0" # Install zipp as a workaround for https://github.com/pypa/virtualenv/issues/1630 RUN pip install "zipp==1.0.0" VOLUME /src WORKDIR /src ENTRYPOINT ["docker/test.sh"]