tito/hacking/titotest-fedora-20/Dockerfile
2015-05-08 13:05:38 -03:00

41 lines
903 B
Docker

# https://index.docker.io/_/fedora/
FROM fedora:20
# http://jumanjiman.github.io/
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
# F20 needs updates to resolve conflict with asciidoc.
RUN yum -y update; yum clean all
# NOTE: runtests.sh hard-links tito.spec into this directory on-the-fly
# to work around https://github.com/dotcloud/docker/issues/1676
ADD tito.spec /tmp/tito.spec
# Install build dependencies.
RUN yum -y install \
yum-utils \
git-annex \
python-mock \
python-nose \
python-pep8
RUN yum -y install \
python3-mock \
python3-nose \
python3-pep8
RUN yum-builddep -y /tmp/tito.spec
RUN yum clean all
RUN useradd sandbox
RUN git config --system user.email "sandbox@example.com"
RUN git config --system user.name "sandbox"
RUN yum install -y python-nose
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
ENV LANG C
CMD ["/bin/bash"]