Skip to content

Commit f77f69b

Browse files
author
Sebastian Gumprich
committed
first commit
0 parents  commit f77f69b

File tree

22 files changed

+1261
-0
lines changed

22 files changed

+1261
-0
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Summary
2+
These are Docker containers that include ansible in version 1.9.x or the latest stable 2.x version.
3+
4+
They are meant for testing purposes and are mainly used [here](https://github.com/dev-sec/).
5+
6+
# Container
7+
8+
| Base operating system | Ansible version | Github | Docker Hub |
9+
| ---------------------- | --------------- | ------------------------------------- |------------|
10+
| [CentOS 6][centos] | 1.9 | [docker-centos6-ansible-19][] | [rndmh3ro/docker-centos6-ansible-19][] |
11+
| [CentOS 6][centos] | 2.x | [docker-centos6-ansible-latest][] | [rndmh3ro/docker-centos6-ansible-latest][] |
12+
| [CentOS 7][centos] | 1.9 | [docker-centos7-ansible-19][] | [rndmh3ro/docker-centos7-ansible-19][] |
13+
| [CentOS 7][centos] | 2.x | [docker-centos7-ansible-latest][] | [rndmh3ro/docker-centos7-ansible-latest][] |
14+
| [Debian 7][debian] | 1.9 | [docker-debian7-ansible-19][] | [rndmh3ro/docker-debian7-ansible-19][] |
15+
| [Debian 7][debian] | 2.x | [docker-debian7-ansible-latest][] | [rndmh3ro/docker-debian7-ansible-latest][] |
16+
| [Debian 8][debian] | 1.9 | [docker-debian8-ansible-19][] | [rndmh3ro/docker-debian8-ansible-19][] |
17+
| [Debian 8][debian] | 2.x | [docker-debian8-ansible-latest][] | [rndmh3ro/docker-debian8-ansible-latest][] |
18+
| [Debian 9][debian] | 1.9 | [docker-debian9-ansible-19][] | [rndmh3ro/docker-debian9-ansible-19][] |
19+
| [Debian 9][debian] | 2.x | [docker-debian9-ansible-latest][] | [rndmh3ro/docker-debian9-ansible-latest][] |
20+
| [Oracle 6][oracle] | 1.9 | [docker-oracle6-ansible-19][] | [rndmh3ro/docker-oracle6-ansible-19][] |
21+
| [Oracle 6][oracle] | 2.x | [docker-oracle6-ansible-latest][] | [rndmh3ro/docker-oracle6-ansible-latest][] |
22+
| [Oracle 7][oracle] | 1.9 | [docker-oracle7-ansible-19][] | [rndmh3ro/docker-oracle7-ansible-19][] |
23+
| [Oracle 7][oracle] | 2.x | [docker-oracle7-ansible-latest][] | [rndmh3ro/docker-oracle7-ansible-latest][] |
24+
| [Ubuntu 12.04][ubuntu] | 1.9 | [docker-ubuntu-1204-ansible-19][] | [rndmh3ro/docker-ubuntu-1204-ansible-19][] |
25+
| [Ubuntu 12.04][ubuntu] | 2.x | [docker-ubuntu-1204-ansible-latest][] | [rndmh3ro/docker-ubuntu-1204-ansible-latest][] |
26+
| [Ubuntu 14.04][ubuntu] | 1.9 | [docker-ubuntu-1404-ansible-19][] | [rndmh3ro/docker-ubuntu-1404-ansible-19][] |
27+
| [Ubuntu 14.04][ubuntu] | 2.x | [docker-ubuntu-1404-ansible-latest][] | [rndmh3ro/docker-ubuntu-1404-ansible-latest][] |
28+
| [Ubuntu 16.04][ubuntu] | 1.9 | [docker-ubuntu-1604-ansible-19][] | [rndmh3ro/docker-ubuntu-1604-ansible-19][] |
29+
| [Ubuntu 16.04][ubuntu] | 2.x | [docker-ubuntu-1604-ansible-latest][] | [rndmh3ro/docker-ubuntu-1604-ansible-latest][] |
30+
31+
32+
# Author
33+
34+
Sebastian Gumprich <[email protected]>
35+
36+
37+
[centos]: https://hub.docker.com/_/centos/
38+
[debian]: https://hub.docker.com/_/debian/
39+
[oracle]: https://hub.docker.com/_/oraclelinux/
40+
[ubuntu]: https://hub.docker.com/_/ubuntu/
41+
[docker-centos6-ansible-19]: https://github.com/rndmh3ro/docker-centos6-ansible-19
42+
[docker-centos6-ansible-latest]: https://github.com/rndmh3ro/docker-centos6-ansible-latest
43+
[docker-centos7-ansible-19]: https://github.com/rndmh3ro/docker-centos7-ansible-19
44+
[docker-centos7-ansible-latest]: https://github.com/rndmh3ro/docker-centos7-ansible-latest
45+
[docker-debian7-ansible-19]: https://github.com/rndmh3ro/docker-debian7-ansible-19
46+
[docker-debian7-ansible-latest]: https://github.com/rndmh3ro/docker-debian7-ansible-latest
47+
[docker-debian8-ansible-19]: https://github.com/rndmh3ro/docker-debian8-ansible-19
48+
[docker-debian8-ansible-latest]: https://github.com/rndmh3ro/docker-debian8-ansible-latest
49+
[docker-debian9-ansible-19]: https://github.com/rndmh3ro/docker-debian9-ansible-19
50+
[docker-debian9-ansible-latest]: https://github.com/rndmh3ro/docker-debian9-ansible-latest
51+
[docker-oracle6-ansible-19]: https://github.com/rndmh3ro/docker-oracle6-ansible-19
52+
[docker-oracle6-ansible-latest]: https://github.com/rndmh3ro/docker-oracle6-ansible-latest
53+
[docker-oracle7-ansible-19]: https://github.com/rndmh3ro/docker-oracle7-ansible-19
54+
[docker-oracle7-ansible-latest]: https://github.com/rndmh3ro/docker-oracle7-ansible-latest
55+
[docker-ubuntu-1204-ansible-19]: https://github.com/rndmh3ro/docker-ubuntu-1204-ansible-19
56+
[docker-ubuntu-1204-ansible-latest]: https://github.com/rndmh3ro/docker-ubuntu-1204-ansible-latest
57+
[docker-ubuntu-1404-ansible-19]: https://github.com/rndmh3ro/docker-ubuntu-1404-ansible-19
58+
[docker-ubuntu-1404-ansible-latest]: https://github.com/rndmh3ro/docker-ubuntu-1404-ansible-19
59+
[docker-ubuntu-1604-ansible-19]: https://github.com/rndmh3ro/docker-ubuntu-1604-ansible-19
60+
[docker-ubuntu-1604-ansible-latest]: https://github.com/rndmh3ro/docker-ubuntu-1604-ansible-latest
61+
62+
[rndmh3ro/docker-centos6-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-centos6-ansible-19
63+
[rndmh3ro/docker-centos6-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-centos6-ansible-latest
64+
[rndmh3ro/docker-centos7-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-centos7-ansible-19
65+
[rndmh3ro/docker-centos7-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-centos7-ansible-latest
66+
[rndmh3ro/docker-debian7-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-debian7-ansible-19
67+
[rndmh3ro/docker-debian7-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-debian7-ansible-latest
68+
[rndmh3ro/docker-debian8-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-debian8-ansible-19
69+
[rndmh3ro/docker-debian8-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-debian8-ansible-latest
70+
[rndmh3ro/docker-debian9-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-debian9-ansible-19
71+
[rndmh3ro/docker-debian9-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-debian9-ansible-latest
72+
[rndmh3ro/docker-oracle6-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-oracle6-ansible-19
73+
[rndmh3ro/docker-oracle6-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-oracle6-ansible-latest
74+
[rndmh3ro/docker-oracle7-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-oracle7-ansible-19
75+
[rndmh3ro/docker-oracle7-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-oracle7-ansible-latest
76+
[rndmh3ro/docker-ubuntu-1204-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-ubuntu-1204-ansible-19
77+
[rndmh3ro/docker-ubuntu-1204-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-ubuntu-1204-ansible-latest
78+
[rndmh3ro/docker-ubuntu-1404-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-ubuntu-1404-ansible-19
79+
[rndmh3ro/docker-ubuntu-1404-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-ubuntu-1404-ansible-19
80+
[rndmh3ro/docker-ubuntu-1604-ansible-19]: https://hub.docker.com/r/rndmh3ro/docker-ubuntu-1604-ansible-19
81+
[rndmh3ro/docker-ubuntu-1604-ansible-latest]: https://hub.docker.com/r/rndmh3ro/docker-ubuntu-1604-ansible-latest
82+

centos6-ansible-19/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM centos:6
2+
MAINTAINER Sebastian Gumprich
3+
4+
# Install Ansible and other requirements.
5+
RUN yum makecache fast && \
6+
yum -y install deltarpm epel-release initscripts && \
7+
yum -y update && \
8+
yum -y install --enablerepo=epel-testing ansible1.9 \
9+
sudo \
10+
which && \
11+
yum clean all
12+
13+
# Install Ansible inventory file.
14+
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
15+
16+
CMD [ "ansible-playbook", "--version" ]

centos6-ansible-latest/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM centos:6
2+
MAINTAINER Sebastian Gumprich
3+
4+
# Install Ansible and other requirements.
5+
RUN yum makecache fast && \
6+
yum -y install deltarpm epel-release initscripts && \
7+
yum -y update && \
8+
yum -y install \
9+
ansible \
10+
sudo \
11+
which && \
12+
yum clean all
13+
14+
# Install Ansible inventory file.
15+
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
16+
17+
CMD [ "ansible-playbook", "--version" ]

centos7-ansible-19/Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM centos:7
2+
MAINTAINER Sebastian Gumprich
3+
ENV container=docker
4+
5+
# Install systemd -- See https://hub.docker.com/_/centos/
6+
RUN yum -y update; yum clean all; \
7+
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
8+
rm -f /lib/systemd/system/multi-user.target.wants/*;\
9+
rm -f /etc/systemd/system/*.wants/*;\
10+
rm -f /lib/systemd/system/local-fs.target.wants/*; \
11+
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
12+
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
13+
rm -f /lib/systemd/system/basic.target.wants/*;\
14+
rm -f /lib/systemd/system/anaconda.target.wants/*;
15+
16+
# Install Ansible and other requirements.
17+
RUN yum makecache fast && \
18+
yum -y install deltarpm epel-release initscripts && \
19+
yum -y update && \
20+
yum -y install \
21+
ansible1.9 \
22+
sudo \
23+
which && \
24+
yum clean all
25+
26+
# Disable requiretty.
27+
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
28+
29+
# Install Ansible inventory file.
30+
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
31+
32+
VOLUME ["/sys/fs/cgroup"]
33+
CMD [ "ansible-playbook", "--version" ]

centos7-ansible-latest/Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM centos:7
2+
MAINTAINER Sebastian Gumprich
3+
ENV container=docker
4+
5+
# Install systemd -- See https://hub.docker.com/_/centos/
6+
RUN yum -y update; yum clean all; \
7+
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
8+
rm -f /lib/systemd/system/multi-user.target.wants/*;\
9+
rm -f /etc/systemd/system/*.wants/*;\
10+
rm -f /lib/systemd/system/local-fs.target.wants/*; \
11+
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
12+
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
13+
rm -f /lib/systemd/system/basic.target.wants/*;\
14+
rm -f /lib/systemd/system/anaconda.target.wants/*;
15+
16+
# Install Ansible and other requirements.
17+
RUN yum makecache fast && \
18+
yum -y install deltarpm epel-release initscripts && \
19+
yum -y update && \
20+
yum -y install \
21+
ansible \
22+
sudo \
23+
which && \
24+
yum clean all
25+
26+
# Disable requiretty.
27+
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
28+
29+
# Install Ansible inventory file.
30+
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
31+
32+
VOLUME ["/sys/fs/cgroup"]
33+
CMD [ "ansible-playbook", "--version" ]

debian7-ansible-19/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM debian:wheezy
2+
MAINTAINER Sebastian Gumprich
3+
4+
RUN apt-get update -y && apt-get install --fix-missing && \
5+
DEBIAN_FRONTEND=noninteractive \
6+
apt-get install -y \
7+
python python-yaml sudo \
8+
curl gcc python-pip python-dev libffi-dev libssl-dev
9+
RUN pip install --upgrade cffi && \
10+
pip install ansible==1.9.6
11+
12+
RUN apt-get -f -y --auto-remove remove \
13+
gcc python-pip python-dev libffi-dev libssl-dev && \
14+
apt-get clean && \
15+
rm -rf /var/lib/apt/lists/* /tmp/* /usr/share/doc /usr/share/man
16+
17+
# Install Ansible inventory file
18+
RUN mkdir -p /etc/ansible \
19+
&& echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
20+
21+
CMD [ "ansible-playbook", "--version" ]

debian7-ansible-latest/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM debian:wheezy
2+
MAINTAINER Sebastian Gumprich
3+
4+
RUN apt-get update -y && apt-get install --fix-missing && \
5+
DEBIAN_FRONTEND=noninteractive \
6+
apt-get install -y \
7+
python python-yaml sudo \
8+
curl gcc python-pip python-dev libffi-dev libssl-dev
9+
RUN pip install --upgrade cffi && \
10+
pip install ansible
11+
12+
RUN apt-get -f -y --auto-remove remove \
13+
gcc python-pip python-dev libffi-dev libssl-dev && \
14+
apt-get clean && \
15+
rm -rf /var/lib/apt/lists/* /tmp/* /usr/share/doc /usr/share/man
16+
17+
# Install Ansible inventory file
18+
RUN mkdir -p /etc/ansible \
19+
&& echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
20+
21+
CMD [ "ansible-playbook", "--version" ]

debian8-ansible-19/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM debian:jessie
2+
MAINTAINER Sebastian Gumprich
3+
4+
RUN apt-get update -y && apt-get install --fix-missing && \
5+
DEBIAN_FRONTEND=noninteractive \
6+
apt-get install -y \
7+
python python-yaml sudo \
8+
curl gcc python-pip python-dev libffi-dev libssl-dev && \
9+
apt-get -y --purge remove python-cffi
10+
RUN pip install --upgrade cffi && \
11+
pip install ansible==1.9.6
12+
13+
RUN apt-get -f -y --auto-remove remove \
14+
gcc python-pip python-dev libffi-dev libssl-dev && \
15+
apt-get clean && \
16+
rm -rf /var/lib/apt/lists/* /tmp/* /usr/share/doc /usr/share/man
17+
18+
# Install Ansible inventory file
19+
RUN mkdir -p /etc/ansible \
20+
&& echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
21+
22+
CMD [ "ansible-playbook", "--version" ]

debian8-ansible-latest/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM debian:jessie
2+
MAINTAINER Sebastian Gumprich
3+
4+
RUN apt-get update -y && apt-get install --fix-missing && \
5+
DEBIAN_FRONTEND=noninteractive \
6+
apt-get install -y \
7+
python python-yaml sudo \
8+
curl gcc python-pip python-dev libffi-dev libssl-dev && \
9+
apt-get -y --purge remove python-cffi
10+
11+
RUN pip install --upgrade cffi && \
12+
pip install ansible
13+
14+
RUN apt-get -f -y --auto-remove remove \
15+
gcc python-pip python-dev libffi-dev libssl-dev && \
16+
apt-get clean && \
17+
rm -rf /var/lib/apt/lists/* /tmp/* /usr/share/doc /usr/share/man
18+
19+
# Install Ansible inventory file
20+
RUN mkdir -p /etc/ansible \
21+
&& echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
22+
23+
CMD [ "ansible-playbook", "--version" ]

0 commit comments

Comments
 (0)