Files
fm-orchestrator/docker/Dockerfile-tests
Chenxiong Qi 87f4f3e546 Use distro.linux_distribution instead
platform.linux_distribution is removed since Python 3.8.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2019-11-18 10:41:41 +08:00

58 lines
1.5 KiB
Plaintext

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/
# Remove libmodulemd1 after the following ticket is resolved https://pagure.io/fedora-infrastructure/issue/8206
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 \
libmodulemd1 \
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-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 flask-sqlalchemy "pytest<5.0" flake8 tox pip "more-itertools<6.0.0" pytest-cov
VOLUME /src
WORKDIR /src
ENTRYPOINT ["docker/test.sh"]