12345678910111213141516171819202122232425262728293031323334353637 |
- FROM fedora:29
- ARG repo=https://pagure.io/pagure.git
- ARG branch=master
- ENV REPO=$repo
- ENV BRANCH=$branch
- RUN dnf -y install \
- python3-setuptools \
- python3-coverage \
- python3-nose \
- python3-mock \
- python3-docutils \
- python3-black \
- python3-flake8 \
- redis \
- which \
- git
- RUN cd / \
- && git clone -b $BRANCH $REPO \
- && chmod +x /pagure/dev/containers/runtests_py3.sh \
- && sed -i -e 's|\["alembic",|\["alembic-3",|' /pagure/tests/test_alembic.py
- # Install all the requirements from the spec file and replace the macro
- # %{python_pkgversion} by '3' which thus installs all the py3 version of
- # the dependencies.
- RUN dnf install -y `grep "Requires:" /pagure/files/pagure.spec | \
- awk '{split($0, a, " "); print a[2]}' |grep -v "%{name}" | \
- sed -e "s|%{python_pkgversion}|3|"` && \
- dnf clean all && \
- cd /pagure && python setup.py build
- WORKDIR /pagure
- ENTRYPOINT ["/pagure/dev/containers/runtests_py3.sh"]
- CMD []
|