centos8-rpms-py3 1.2 KB

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