fedora-rpms-py3 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. FROM quay.io/fedora/fedora:32-x86_64
  2. ARG repo=https://pagure.io/pagure.git
  3. ARG branch=master
  4. ENV REPO=$repo
  5. ENV BRANCH=$branch
  6. RUN dnf -y --enablerepo=updates-testing install \
  7. python3-setuptools \
  8. python3-beautifulsoup4 \
  9. python3-coverage \
  10. python3-mock \
  11. python3-docutils \
  12. python3-black \
  13. python3-flake8 \
  14. python3-pytest-xdist \
  15. python3-flask-oidc \
  16. python3-cchardet \
  17. python3-fedora-messaging \
  18. python3-pip \
  19. redis \
  20. which \
  21. git
  22. RUN pip install pagure-messages
  23. RUN cd / \
  24. && GIT_TRACE=1 GIT_CURL_VERBOSE=1 git clone -b $BRANCH $REPO \
  25. && chmod +x /pagure/dev/containers/runtests_py3.sh
  26. # Install all the requirements from the spec file and replace the macro
  27. # %{python_pkgversion} by '3' which thus installs all the py3 version of
  28. # the dependencies.
  29. RUN dnf install -y --enablerepo=updates-testing `grep "Requires:" /pagure/files/pagure.spec | \
  30. awk '{split($0, a, " "); print a[2]}' |grep -v "%{name}" | \
  31. sed -e "s|%{python_pkgversion}|3|"` && \
  32. dnf clean all && \
  33. cd /pagure && \
  34. python3 setup.py build
  35. WORKDIR /pagure
  36. ENTRYPOINT ["/pagure/dev/containers/runtests_py3.sh"]
  37. CMD []