Files
fm-orchestrator/docker/Dockerfile-tests
mprahl 00e78494d9 Refactor handling of default buildroot modules (Ursa Prime)
This removes support for default_modules_url in the Platform XMD and
gets the list of default name:stream combinations to include in the buildroot
from https://pagure.io/releng/fedora-module-defaults.

Addresses #1402
2019-09-11 12:20:35 -04:00

58 lines
1.7 KiB
Plaintext

FROM centos:7
WORKDIR /build
RUN yum -y update
RUN yum -y install epel-release yum-utils
RUN yum-config-manager --add-repo https://kojipkgs.fedoraproject.org/repos-dist/epel7Server-infra/latest/x86_64/
# Replace the pinned libmodulemd RPMs with python2-libmodulemd2 after https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-e093131fa7
RUN yum -y install \
--nogpgcheck \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
bash \
createrepo_c \
rsync \
fedmsg \
fedmsg-hub \
gcc \
git \
kobo \
kobo-rpmlib \
python-backports-ssl_match_hostname \
python-dnf \
python-dogpile-cache \
python-enum34 \
python-flask \
python-flask-migrate \
python-flask-sqlalchemy \
python-funcsigs \
python-futures \
python-koji \
python-ldap3 \
https://kojipkgs.fedoraproject.org//packages/libmodulemd2/2.8.0/2.el7/x86_64/libmodulemd2-2.8.0-2.el7.x86_64.rpm \
https://kojipkgs.fedoraproject.org//packages/libmodulemd2/2.8.0/2.el7/x86_64/python2-libmodulemd2-2.8.0-2.el7.x86_64.rpm \
python-mock \
python-munch \
python-pip \
python-prometheus_client \
python-requests \
python-six \
python-solv \
python-sqlalchemy \
python2-pungi \
python-psycopg2 \
# Test-only dependencies
python-flake8 \
python-mock \
python-tox \
rpm-build \
python2-pyyaml \
&& 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"
VOLUME /src
WORKDIR /src
ENTRYPOINT ["docker/test.sh"]