tito/hacking/titotest-centos-5.9/Dockerfile
Paul Morgan b3e0827d2c add rpmdevtools as build dep for el5
9feb9cf4 added rpmdevtools as an install depedency;
it is also needed as a build dep for current functional tests.
2014-07-04 14:34:00 +00:00

30 lines
754 B
Docker

# https://index.docker.io/_/centos/
FROM tianon/centos:5.9
# http://jumanjiman.github.io/
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
# Install dependencies.
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 --global user.email "sandbox@example.com"
RUN git config --global user.name "sandbox"
USER sandbox
VOLUME ["/home/sandbox"]
WORKDIR /home/sandbox
ENV LANG C
CMD ["/bin/bash"]