f29-rpms-py3 980 B

12345678910111213141516171819202122232425262728293031323334353637
  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. && sed -i -e "s|\['alembic',|\['alembic-3',|" /pagure/tests/test_alembic.py
  21. # Install all the requirements from the spec file and replace the macro
  22. # %{python_pkgversion} by '3' which thus installs all the py3 version of
  23. # the dependencies.
  24. RUN dnf install -y `grep "Requires:" /pagure/files/pagure.spec | \
  25. awk '{split($0, a, " "); print a[2]}' |grep -v "%{name}" | \
  26. sed -e "s|%{python_pkgversion}|3|"` && \
  27. dnf clean all && \
  28. cd /pagure && python setup.py build
  29. WORKDIR /pagure
  30. ENTRYPOINT ["/pagure/dev/containers/runtests_py3.sh"]
  31. CMD []