Added Centos 6 as target platform

This commit is contained in:
Bert Van Vreckem 2015-12-14 07:18:01 +01:00
parent 5ca9ccc7c3
commit 7c41dd113e
2 changed files with 16 additions and 0 deletions

View file

@ -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

11
tests/Dockerfile.centos-6 Normal file
View file

@ -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"]