Blame dev/containers/f29-rpms-py3
|
Pierre-Yves Chibon |
479e0a |
FROM fedora:29
|
|
Pierre-Yves Chibon |
479e0a |
|
|
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 |
479e0a |
RUN dnf -y install \
|
|
Pierre-Yves Chibon |
479e0a |
python3-setuptools \
|
|
Pierre-Yves Chibon |
479e0a |
python3-coverage \
|
|
Pierre-Yves Chibon |
479e0a |
python3-nose \
|
|
Pierre-Yves Chibon |
479e0a |
python3-mock \
|
|
Pierre-Yves Chibon |
479e0a |
python3-docutils \
|
|
Pierre-Yves Chibon |
479e0a |
python3-black \
|
|
Pierre-Yves Chibon |
479e0a |
python3-flake8 \
|
|
Pierre-Yves Chibon |
479e0a |
redis \
|
|
Pierre-Yves Chibon |
479e0a |
which \
|
|
Pierre-Yves Chibon |
479e0a |
git
|
|
Pierre-Yves Chibon |
479e0a |
|
|
Pierre-Yves Chibon |
479e0a |
RUN cd / \
|
|
Karsten Hopp |
099860 |
&& git clone -b $BRANCH $REPO \
|
|
Pierre-Yves Chibon |
73d120 |
&& chmod +x /pagure/dev/containers/runtests_py3.sh \
|
|
Pierre-Yves Chibon |
471da9 |
&& sed -i -e 's|\["alembic",|\["alembic-3",|' /pagure/tests/test_alembic.py
|
|
Pierre-Yves Chibon |
479e0a |
|
|
Pierre-Yves Chibon |
479e0a |
# Install all the requirements from the spec file and replace the macro
|
|
Pierre-Yves Chibon |
479e0a |
# %{python_pkgversion} by '3' which thus installs all the py3 version of
|
|
Pierre-Yves Chibon |
479e0a |
# the dependencies.
|
|
Pierre-Yves Chibon |
479e0a |
RUN dnf install -y `grep "Requires:" /pagure/files/pagure.spec | \
|
|
Pierre-Yves Chibon |
479e0a |
awk '{split($0, a, " "); print a[2]}' |grep -v "%{name}" | \
|
|
Pierre-Yves Chibon |
479e0a |
sed -e "s|%{python_pkgversion}|3|"` && \
|
|
Pierre-Yves Chibon |
479e0a |
dnf clean all && \
|
|
Pierre-Yves Chibon |
479e0a |
cd /pagure && python setup.py build
|
|
Pierre-Yves Chibon |
479e0a |
|
|
Pierre-Yves Chibon |
479e0a |
WORKDIR /pagure
|
|
Pierre-Yves Chibon |
479e0a |
ENTRYPOINT ["/pagure/dev/containers/runtests_py3.sh"]
|
|
Pierre-Yves Chibon |
479e0a |
CMD []
|