1
0

fedora-pip-py3 761 B

1234567891011121314151617181920212223242526272829303132333435
  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. glibc-langpack-en
  20. RUN cd / \
  21. && git clone -b $BRANCH $REPO \
  22. && chmod +x /pagure/dev/containers/tox_py3.sh
  23. # Install pygit2 manually, outside of the virtualenv since it is tightly coupled
  24. # which the version of libgit2 installed on the system.
  25. RUN pip3 install "pygit2 <= `rpm -q libgit2 --queryformat='%{version}'`" && \
  26. cd /pagure
  27. WORKDIR /pagure
  28. ENTRYPOINT ["/pagure/dev/containers/tox_py3.sh"]
  29. CMD []