diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:52:21 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:52:21 -0500 |
commit | d62baac66345ed735443cbb648e684923fed7d17 (patch) | |
tree | 0dc5c11f860fe6b373f3f66b87358d1e46b8407d /tests/Dockerfile.centos-7 | |
parent | 9cac39786e63d655eceb3ecbd74b3df8461654d3 (diff) | |
download | ansible-rabbitmq-d62baac66345ed735443cbb648e684923fed7d17.tar.gz ansible-rabbitmq-d62baac66345ed735443cbb648e684923fed7d17.tar.zst ansible-rabbitmq-d62baac66345ed735443cbb648e684923fed7d17.zip |
Added Travis testing
Diffstat (limited to 'tests/Dockerfile.centos-7')
-rw-r--r-- | tests/Dockerfile.centos-7 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/Dockerfile.centos-7 b/tests/Dockerfile.centos-7 new file mode 100644 index 0000000..1ad757e --- /dev/null +++ b/tests/Dockerfile.centos-7 | |||
@@ -0,0 +1,27 @@ | |||
1 | FROM centos:7 | ||
2 | ENV container=docker | ||
3 | |||
4 | RUN yum -y install epel-release && \ | ||
5 | yum -y install gmp-devel libffi-devel openssl-devel python-crypto \ | ||
6 | python-devel python-pip python-setuptools python-virtualenv \ | ||
7 | redhat-rpm-config && \ | ||
8 | yum -y group install "Development Tools" | ||
9 | |||
10 | # Install systemd -- See https://hub.docker.com/_/centos/ | ||
11 | RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ | ||
12 | rm -f /lib/systemd/system/multi-user.target.wants/*;\ | ||
13 | rm -f /etc/systemd/system/*.wants/*;\ | ||
14 | rm -f /lib/systemd/system/local-fs.target.wants/*; \ | ||
15 | rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ | ||
16 | rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ | ||
17 | rm -f /lib/systemd/system/basic.target.wants/*;\ | ||
18 | rm -f /lib/systemd/system/anaconda.target.wants/*; | ||
19 | |||
20 | RUN pip install enum34 ipaddress wheel && \ | ||
21 | pip install ansible ansible-lint | ||
22 | |||
23 | COPY .ansible-lint / | ||
24 | |||
25 | VOLUME ["/sys/fs/cgroup"] | ||
26 | |||
27 | CMD ["/usr/sbin/init"] | ||