mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00

Older versions of git-annex don't support `git annex lock --force`, so peform a version check and call without --force on these. The EL6 Docker image is changed to one that contains locales, in order for git-annex to run successfully.
25 lines
669 B
Docker
25 lines
669 B
Docker
# https://index.docker.io/_/centos/
|
|
FROM centos:6.4
|
|
|
|
# http://jumanjiman.github.io/
|
|
MAINTAINER Paul Morgan <jumanjiman@gmail.com>
|
|
|
|
# Install dependencies.
|
|
RUN yum -y install git rpm-build python-devel python-nose \
|
|
libxslt asciidoc python-setuptools tar createrepo which
|
|
RUN rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
|
|
RUN yum -y install python-pep8 git-annex python-mock
|
|
|
|
# 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"]
|