f29-rpms-py3 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM fedora:29
  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. python3-setuptools \
  8. python3-coverage \
  9. python3-nose \
  10. python3-mock \
  11. python3-docutils \
  12. python3-black \
  13. python3-flake8 \
  14. redis \
  15. which \
  16. git
  17. RUN cd / \
  18. && git clone -b $BRANCH $REPO \
  19. && chmod +x /pagure/dev/containers/runtests_py3.sh
  20. # Install all the requirements from the spec file and replace the macro
  21. # %{python_pkgversion} by '3' which thus installs all the py3 version of
  22. # the dependencies.
  23. RUN dnf install -y `grep "Requires:" /pagure/files/pagure.spec | \
  24. awk '{split($0, a, " "); print a[2]}' |grep -v "%{name}" | \
  25. sed -e "s|%{python_pkgversion}|3|"` && \
  26. dnf clean all && \
  27. cd /pagure && python setup.py build
  28. WORKDIR /pagure
  29. ENTRYPOINT ["/pagure/dev/containers/runtests_py3.sh"]
  30. CMD []