2017-01-05 16:37:04 -05:00
|
|
|
FROM fedora:25
|
|
|
|
MAINTAINER Steve Kuznetsov <skuznets@redhat.com>
|
|
|
|
|
2017-04-01 15:04:11 -04:00
|
|
|
# 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 \
|
2017-01-05 16:37:04 -05:00
|
|
|
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
|
2017-04-01 15:04:11 -04:00
|
|
|
RUN dnf -y builddep /tmp/tito.spec
|
2017-01-05 16:37:04 -05:00
|
|
|
RUN dnf clean all
|
|
|
|
|
|
|
|
USER sandbox
|
|
|
|
VOLUME ["/home/sandbox"]
|
|
|
|
WORKDIR /home/sandbox
|
|
|
|
|
|
|
|
ENV LANG C
|
|
|
|
CMD ["/bin/bash"]
|