Skip to content
Snippets Groups Projects
Commit c762892b authored by Jeff Geerling's avatar Jeff Geerling
Browse files

Fix broken CentOS tests; 'DistributionNotFound: jinja2'.

parent 65071dd9
No related branches found
No related tags found
No related merge requests found
...@@ -3,17 +3,13 @@ FROM centos:6 ...@@ -3,17 +3,13 @@ FROM centos:6
# Install Ansible # Install Ansible
RUN yum -y update; yum clean all; RUN yum -y update; yum clean all;
RUN yum -y install epel-release RUN yum -y install epel-release
RUN yum -y install git python-setuptools gcc sudo libffi-devel python-devel openssl-devel RUN yum -y install git ansible sudo
RUN yum clean all RUN yum clean all
RUN easy_install pip
RUN pip install ansible
# Disable requiretty # Disable requiretty
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
# Install Ansible inventory file # Install Ansible inventory file
RUN mkdir - p /etc/ansible
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
CMD ["/usr/sbin/init"] CMD ["/usr/sbin/init"]
...@@ -13,16 +13,14 @@ rm -f /lib/systemd/system/basic.target.wants/*; \ ...@@ -13,16 +13,14 @@ rm -f /lib/systemd/system/basic.target.wants/*; \
rm -f /lib/systemd/system/anaconda.target.wants/*; rm -f /lib/systemd/system/anaconda.target.wants/*;
# Install Ansible # Install Ansible
RUN yum -y install git python-setuptools gcc sudo libffi-devel python-devel openssl-devel RUN yum -y install epel-release
RUN yum -y install git ansible sudo
RUN yum clean all RUN yum clean all
RUN easy_install pip
RUN pip install ansible
# Disable requiretty # Disable requiretty
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
# Install Ansible inventory file # Install Ansible inventory file
RUN mkdir - p /etc/ansible
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
VOLUME ["/sys/fs/cgroup"] VOLUME ["/sys/fs/cgroup"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment