Support centos6 and centos7
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
|||||||
.*.sw*
|
.*.sw*
|
||||||
*~
|
*~
|
||||||
.idea/
|
.idea/
|
||||||
|
*.retry
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
|
centos6:
|
||||||
|
build: ./dockerfiles/centos6
|
||||||
|
cap_add:
|
||||||
|
- ALL
|
||||||
|
centos7:
|
||||||
|
build: ./dockerfiles/centos7
|
||||||
|
cap_add:
|
||||||
|
- ALL
|
||||||
debian8:
|
debian8:
|
||||||
build: ./dockerfiles/debian8
|
build: ./dockerfiles/debian8
|
||||||
cap_add:
|
cap_add:
|
||||||
@@ -8,3 +16,11 @@ services:
|
|||||||
build: ./dockerfiles/debian9
|
build: ./dockerfiles/debian9
|
||||||
cap_add:
|
cap_add:
|
||||||
- ALL
|
- ALL
|
||||||
|
ubuntu14:
|
||||||
|
build: ./dockerfiles/ubuntu14
|
||||||
|
cap_add:
|
||||||
|
- ALL
|
||||||
|
ubuntu16:
|
||||||
|
build: ./dockerfiles/ubuntu16
|
||||||
|
cap_add:
|
||||||
|
- ALL
|
||||||
|
|||||||
11
tests/dockerfiles/centos6/Dockerfile
Normal file
11
tests/dockerfiles/centos6/Dockerfile
Normal 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"]
|
||||||
11
tests/dockerfiles/centos7/Dockerfile
Normal file
11
tests/dockerfiles/centos7/Dockerfile
Normal 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"]
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
[centos]
|
||||||
|
tests_centos6_1 ansible_connection=docker
|
||||||
|
tests_centos7_1 ansible_connection=docker
|
||||||
[debian]
|
[debian]
|
||||||
tests_debian8_1 ansible_connection=docker
|
tests_debian8_1 ansible_connection=docker
|
||||||
tests_debian9_1 ansible_connection=docker
|
tests_debian9_1 ansible_connection=docker
|
||||||
|
[ubuntu]
|
||||||
|
tests_ubuntu14_1 ansible_connection=docker
|
||||||
|
tests_ubuntu16_1 ansible_connection=docker
|
||||||
|
|||||||
Reference in New Issue
Block a user