From 7c41dd113e92a844ebd9c91462e94dedcef63eba Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Mon, 14 Dec 2015 07:18:01 +0100 Subject: [PATCH] Added Centos 6 as target platform --- .travis.yml | 5 +++++ tests/Dockerfile.centos-6 | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/Dockerfile.centos-6 diff --git a/.travis.yml b/.travis.yml index 93dfd45..425627c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ sudo: required env: + - distribution: centos + version: 6 + init: /sbin/init + run_opts: "" + container_id: $(mktemp) - distribution: centos version: 7 init: /usr/lib/systemd/systemd diff --git a/tests/Dockerfile.centos-6 b/tests/Dockerfile.centos-6 new file mode 100644 index 0000000..ccffa0b --- /dev/null +++ b/tests/Dockerfile.centos-6 @@ -0,0 +1,11 @@ +FROM centos:6 +RUN yum -y update; yum clean all; +RUN yum -y install epel-release +RUN yum -y install git ansible sudo +RUN yum clean all +# Disable requiretty +RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers +# Install Ansible inventory file +RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts +CMD ["/usr/sbin/init"] +