fedora-pip-py3 737 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM fedora:latest
  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. redhat-rpm-config \
  9. python3-devel \
  10. libgit2-devel \
  11. python3-tox \
  12. libffi-devel \
  13. m2crypto \
  14. zeromq-devel \
  15. gcc \
  16. redis \
  17. which \
  18. git
  19. RUN cd / \
  20. && git clone -b $BRANCH $REPO \
  21. && chmod +x /pagure/dev/containers/tox_py3.sh
  22. # Install pygit2 manually, outside of the virtualenv since it is tightly coupled
  23. # which the version of libgit2 installed on the system.
  24. RUN pip3 install "pygit2 <= `rpm -q libgit2 --queryformat='%{version}'`" && \
  25. cd /pagure
  26. WORKDIR /pagure
  27. ENTRYPOINT ["/pagure/dev/containers/tox_py3.sh"]
  28. CMD []