Blame dev/containers/fedora-pip-py3

Pierre-Yves Chibon 86597a
FROM fedora:latest
Pierre-Yves Chibon 86597a
Karsten Hopp 0d4020
ARG repo=https://pagure.io/pagure.git
Karsten Hopp 0d4020
ARG branch=master
Karsten Hopp 099860
Karsten Hopp 099860
ENV REPO=$repo
Karsten Hopp 099860
ENV BRANCH=$branch
Karsten Hopp 099860
Pierre-Yves Chibon 86597a
RUN dnf -y install \
Pierre-Yves Chibon 86597a
    python3-setuptools \
Pierre-Yves Chibon 86597a
    redhat-rpm-config \
Pierre-Yves Chibon 86597a
    python3-devel \
Pierre-Yves Chibon 86597a
    libgit2-devel \
Pierre-Yves Chibon 415baf
    python3-tox \
Pierre-Yves Chibon 86597a
    libffi-devel \
Pierre-Yves Chibon 86597a
    m2crypto \
Pierre-Yves Chibon 86597a
    zeromq-devel \
Pierre-Yves Chibon 86597a
    gcc \
Pierre-Yves Chibon 86597a
    redis \
Pierre-Yves Chibon 86597a
    which \
Julen Landa Alustiza 884def
    git \
Julen Landa Alustiza 884def
    glibc-langpack-en
Pierre-Yves Chibon 86597a
Pierre-Yves Chibon 86597a
RUN cd / \
Karsten Hopp 099860
    && git clone -b $BRANCH $REPO \
Pierre-Yves Chibon 415baf
    && chmod +x /pagure/dev/containers/tox_py3.sh
Pierre-Yves Chibon 86597a
Pierre-Yves Chibon 86597a
# Install pygit2 manually, outside of the virtualenv since it is tightly coupled
Pierre-Yves Chibon 86597a
# which the version of libgit2 installed on the system.
Pierre-Yves Chibon 86597a
RUN pip3 install "pygit2 <= `rpm -q libgit2 --queryformat='%{version}'`" && \
Pierre-Yves Chibon 86597a
    cd /pagure
Pierre-Yves Chibon 86597a
Pierre-Yves Chibon 86597a
WORKDIR /pagure
Pierre-Yves Chibon 86597a
ENTRYPOINT ["/pagure/dev/containers/tox_py3.sh"]
Pierre-Yves Chibon 86597a
CMD []