tito/hacking/titotest-centos-5/Dockerfile
2015-05-01 15:37:53 -03:00

33 lines
848 B
Docker

# https://index.docker.io/_/centos/
FROM centos:5
# 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.
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 \
libxslt asciidoc tar createrepo which python-bugzilla
RUN pip-python install mock --upgrade
# 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"
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
ENV LANG C
CMD ["/bin/bash"]