diff --git a/tests/Dockerfile-test b/tests/Dockerfile-test new file mode 100644 index 00000000..43b4191d --- /dev/null +++ b/tests/Dockerfile-test @@ -0,0 +1,22 @@ +FROM fedora:33 +LABEL \ + name="Pungi test" \ + description="Run tests using tox with Python 3" \ + vendor="Pungi developers" \ + license="MIT" + +RUN dnf -y update && dnf -y install \ + findutils \ + git \ + koji \ + make \ + python3-createrepo_c \ + python3-tox \ + python3-urlgrabber \ + && dnf clean all + +WORKDIR /src + +COPY . . + +CMD ["tox", "-e", "flake8,black,py3"] diff --git a/tests/Dockerfile-test-py2 b/tests/Dockerfile-test-py2 new file mode 100644 index 00000000..1e41be20 --- /dev/null +++ b/tests/Dockerfile-test-py2 @@ -0,0 +1,25 @@ +FROM centos:7 +LABEL \ + name="Pungi test" \ + description="Run tests using tox with Python 2" \ + vendor="Pungi developers" \ + license="MIT" + +RUN yum -y update && yum -y install \ + git \ + make \ + python3 \ + python-gssapi \ + python-libcomps \ + python-createrepo_c \ + pykickstart \ + && yum clean all + +# python-tox in yum repo is too old, let's install latest version +RUN pip3 install tox + +WORKDIR /src + +COPY . . + +CMD ["tox", "-e", "py27"]