mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-24 12:42:47 +00:00

The test suite tests both Python 2 and Python 3, but the spec file doesn't install both sets of dependencies, so we need to declare the Python 2 dependencies to be installed in the Dockerfiles. In addition, there's no reason to drag in yum-utils, since "dnf builddep" exists and serves the same purpose.
33 lines
961 B
Docker
33 lines
961 B
Docker
FROM fedora:25
|
|
MAINTAINER Steve Kuznetsov <skuznets@redhat.com>
|
|
|
|
# Manually install python2 deps since spec won't add them
|
|
RUN dnf -y install \
|
|
'dnf-command(builddep)' \
|
|
git-annex \
|
|
python2-devel \
|
|
python-mock \
|
|
python-nose \
|
|
python-blessings \
|
|
python-pep8 \
|
|
python-setuptools \
|
|
python-bugzilla \
|
|
python2-rpm \
|
|
python3-mock \
|
|
python3-nose \
|
|
python3-blessings \
|
|
python3-pep8
|
|
|
|
RUN useradd sandbox
|
|
RUN git config --system user.email "sandbox@example.com"
|
|
RUN git config --system user.name "sandbox"
|
|
ADD tito.spec /tmp/tito.spec
|
|
RUN dnf -y builddep /tmp/tito.spec
|
|
RUN dnf clean all
|
|
|
|
USER sandbox
|
|
VOLUME ["/home/sandbox"]
|
|
WORKDIR /home/sandbox
|
|
|
|
ENV LANG C
|
|
CMD ["/bin/bash"]
|