tito/hacking/titotest-centos-6/Dockerfile

51 lines
1.2 KiB
Text
Raw Normal View History

2014-03-12 20:02:17 +00:00
# https://index.docker.io/_/centos/
FROM centos:6
2014-03-12 20:02:17 +00:00
# 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 \
2015-05-08 12:07:38 -03:00
rpm-build \
createrepo_c \
tar \
2015-05-08 12:55:52 -03:00
python-devel \
which \
asciidoc \
docbook-style-xsl \
libxslt \
rpmdevtools \
2015-06-09 10:52:07 -04:00
python-blessings \
; yum clean all
2014-03-12 20:02:17 +00:00
RUN useradd sandbox
RUN git config --system user.email "sandbox@example.com"
RUN git config --system user.name "sandbox"
2014-03-12 20:02:17 +00:00
# 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
2014-03-12 20:02:17 +00:00
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
2015-05-08 12:07:38 -03:00
2014-03-12 20:02:17 +00:00
ENV LANG C
CMD ["/bin/bash"]