Blame dev/containers/f29-rpms-py3
|
Pierre-Yves Chibon |
479e0a |
FROM fedora:29
|
|
Pierre-Yves Chibon |
479e0a |
|
|
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 / \
|
|
Pierre-Yves Chibon |
479e0a |
&& git clone https://pagure.io/pagure.git \
|
|
Pierre-Yves Chibon |
479e0a |
&& chmod +x /pagure/dev/containers/runtests_py3.sh
|
|
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 |
|
|
Pierre-Yves Chibon |
479e0a |
WORKDIR /pagure
|
|
Pierre-Yves Chibon |
479e0a |
ENTRYPOINT ["/pagure/dev/containers/runtests_py3.sh"]
|
|
Pierre-Yves Chibon |
479e0a |
CMD []
|