tito/hacking/titotest-centos-5/Dockerfile

34 lines
848 B
Text
Raw Normal View History

2014-03-12 20:02:17 +00:00
# https://index.docker.io/_/centos/
FROM centos:5
2014-03-12 20:02:17 +00:00
# http://jumanjiman.github.io/
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
# Install dependencies.
# It would be nice to use yum-builddep, but
# el5 yum-builddep only works against rpm, not spec file.
2014-03-12 20:02:17 +00:00
RUN rpm -Uvh http://mirror.es.its.nyu.edu/epel/5/x86_64/epel-release-5-4.noarch.rpm
RUN yum -y install git rpm-build \
python-devel python-nose python-setuptools python-pep8 \
python-pip \
docbook-style-xsl \
rpmdevtools \
2014-06-23 09:45:41 -03:00
libxslt asciidoc tar createrepo which python-bugzilla
2014-03-12 20:02:17 +00:00
RUN pip-python install mock --upgrade
2014-03-12 20:02:17 +00:00
# Remove yum metadata.
RUN yum clean all
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
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
ENV LANG C
CMD ["/bin/bash"]