2014-03-12 20:02:17 +00:00
|
|
|
# https://index.docker.io/_/centos/
|
2015-05-01 15:37:53 -03:00
|
|
|
FROM centos:6
|
2014-03-12 20:02:17 +00:00
|
|
|
|
|
|
|
# http://jumanjiman.github.io/
|
|
|
|
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
|
|
|
|
|
2014-05-26 19:40:03 +00:00
|
|
|
# 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
|
2020-01-31 15:45:28 +01:00
|
|
|
RUN rpm -Uvh http://download-ib01.fedoraproject.org/pub/epel/6/x86_64/Packages/p/python-unittest2-0.5.1-3.el6.noarch.rpm
|
2014-05-26 19:40:03 +00:00
|
|
|
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 \
|
2017-04-01 15:06:12 -04:00
|
|
|
createrepo_c \
|
2015-05-01 15:37:53 -03:00
|
|
|
tar \
|
2015-05-08 12:55:52 -03:00
|
|
|
python-devel \
|
|
|
|
which \
|
|
|
|
asciidoc \
|
|
|
|
docbook-style-xsl \
|
|
|
|
libxslt \
|
|
|
|
rpmdevtools \
|
2020-01-13 09:04:38 +01:00
|
|
|
python-blessed \
|
2014-05-26 19:40:03 +00:00
|
|
|
; yum clean all
|
2014-03-12 20:02:17 +00:00
|
|
|
|
|
|
|
RUN useradd sandbox
|
2015-05-01 15:37:53 -03:00
|
|
|
RUN git config --system user.email "sandbox@example.com"
|
|
|
|
RUN git config --system user.name "sandbox"
|
2014-03-12 20:02:17 +00:00
|
|
|
|
2015-05-12 16:07:04 -03: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"]
|