Support centos6 and centos7

This commit is contained in:
Paul Montero
2017-09-16 15:00:29 -05:00
parent 37b4d975d3
commit 4d94ef7588
9 changed files with 74 additions and 29 deletions

3
.gitignore vendored
View File

@@ -3,4 +3,5 @@
._*
.*.sw*
*~
.idea/
.idea/
*.retry

View File

@@ -1,5 +1,13 @@
version: "3"
services:
centos6:
build: ./dockerfiles/centos6
cap_add:
- ALL
centos7:
build: ./dockerfiles/centos7
cap_add:
- ALL
debian8:
build: ./dockerfiles/debian8
cap_add:
@@ -8,3 +16,11 @@ services:
build: ./dockerfiles/debian9
cap_add:
- ALL
ubuntu14:
build: ./dockerfiles/ubuntu14
cap_add:
- ALL
ubuntu16:
build: ./dockerfiles/ubuntu16
cap_add:
- ALL

View File

@@ -0,0 +1,11 @@
FROM centos:6
RUN useradd -ms /bin/bash user
RUN yum update -y && \
yum install -y \
initscripts \
sudo \
&& yum clean all
CMD ["/sbin/init"]

View File

@@ -0,0 +1,11 @@
FROM centos:7
RUN useradd -ms /bin/bash user
RUN yum update -y && \
yum install -y \
sudo \
which \
&& yum clean all
CMD ["/usr/sbin/init"]

View File

@@ -3,16 +3,16 @@ FROM debian:8
RUN useradd -ms /bin/bash user
RUN apt-get update && \
apt-get install -y \
curl \
build-essential \
libbz2-dev \
libffi-dev \
libncurses5-dev \
libreadline-dev \
libssl-dev \
sudo \
wget \
apt-get install -y \
curl \
build-essential \
libbz2-dev \
libffi-dev \
libncurses5-dev \
libreadline-dev \
libssl-dev \
sudo \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/

View File

@@ -4,11 +4,11 @@ RUN useradd -ms /bin/bash user
RUN apt-get update && \
apt-get install -y \
curl \
gpg \
python \
sudo \
systemd \
curl \
gpg \
python \
sudo \
systemd \
&& rm -rf /var/lib/apt/lists/*
CMD ["/bin/systemd"]

View File

@@ -3,16 +3,16 @@ FROM ubuntu:14.04
RUN useradd -ms /bin/bash user
RUN apt-get update && \
apt-get install -y \
curl \
build-essential \
libbz2-dev \
libffi-dev \
libncurses5-dev \
libreadline-dev \
libssl-dev \
sudo \
wget \
apt-get install -y \
curl \
build-essential \
libbz2-dev \
libffi-dev \
libncurses5-dev \
libreadline-dev \
libssl-dev \
sudo \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/

View File

@@ -4,9 +4,9 @@ RUN useradd -ms /bin/bash user
RUN apt-get update && \
apt-get install -y \
curl \
python \
sudo \
curl \
python \
sudo \
&& rm -rf /var/lib/apt/lists/*
CMD ["/sbin/init"]

View File

@@ -1,3 +1,9 @@
[centos]
tests_centos6_1 ansible_connection=docker
tests_centos7_1 ansible_connection=docker
[debian]
tests_debian8_1 ansible_connection=docker
tests_debian9_1 ansible_connection=docker
[ubuntu]
tests_ubuntu14_1 ansible_connection=docker
tests_ubuntu16_1 ansible_connection=docker