tito/hacking/titotest-centos-6/Dockerfile
Devan Goodwin dcbbb7f01a Add tito spec later in test dockerfiles.
It changes a lot and rebuilding everything sucks.
2015-05-12 16:07:04 -03:00

49 lines
1.2 KiB
Docker

# https://index.docker.io/_/centos/
FROM centos:6
# http://jumanjiman.github.io/
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
# Install test dependencies. It would be nice to add these as
# build deps and add %check to tito.spec in accordance with
# https://fedoraproject.org/wiki/QA/Testing_in_check
# but some of the packages come from EPEL.
RUN rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum -y install \
git \
git-annex \
python-bugzilla \
python-mock \
python-nose \
python-pep8 \
rpm-build \
createrepo \
tar \
python-devel \
which \
asciidoc \
docbook-style-xsl \
libxslt \
rpmdevtools \
; yum clean all
RUN useradd sandbox
RUN git config --system user.email "sandbox@example.com"
RUN git config --system user.name "sandbox"
# 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 \
; yum-builddep -y /tmp/tito.spec \
; yum clean all
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
ENV LANG C
CMD ["/bin/bash"]