aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWilliam Yeh <william.pjyeh@gmail.com>2016-05-11 16:36:20 +0800
committerWilliam Yeh <william.pjyeh@gmail.com>2016-05-11 16:36:20 +0800
commitc460a616de04e5571d8f8b5cb8a6f11832e38e3d (patch)
tree83b06d4172228daafc6a1175d3932c6dae2965e3
parent97d48efeb67f4f7566752625ad3ce233f31985be (diff)
downloaddocker-ansible-c460a616de04e5571d8f8b5cb8a6f11832e38e3d.tar.gz
docker-ansible-c460a616de04e5571d8f8b5cb8a6f11832e38e3d.tar.zst
docker-ansible-c460a616de04e5571d8f8b5cb8a6f11832e38e3d.zip
Update: use `yum --enablerepo=epel-testing install ansible` for CentOS series.
@see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/ @see https://bodhi.fedoraproject.org/updates/?packages=ansible
-rw-r--r--1.9-centos6-onbuild/Dockerfile23
-rw-r--r--1.9-centos6/Dockerfile23
-rw-r--r--1.9-centos7-onbuild/Dockerfile23
-rw-r--r--1.9-centos7/Dockerfile23
-rw-r--r--centos6-onbuild/Dockerfile23
-rw-r--r--centos6/Dockerfile23
-rw-r--r--centos7-onbuild/Dockerfile23
-rw-r--r--centos7/Dockerfile23
8 files changed, 72 insertions, 112 deletions
diff --git a/1.9-centos6-onbuild/Dockerfile b/1.9-centos6-onbuild/Dockerfile
index ff7ce39..01678b4 100644
--- a/1.9-centos6-onbuild/Dockerfile
+++ b/1.9-centos6-onbuild/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible 1.9 image for CentOS 6, with as few additional software as possible. 1# Dockerfile for building Ansible 1.9 image for CentOS 6, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -25,28 +27,21 @@ RUN echo "===> Installing EPEL..." && \
25 yum -y install initscripts sudo && \ 27 yum -y install initscripts sudo && \
26 \ 28 \
27 \ 29 \
28 echo "===> Adding Ansible's prerequisites..." && \ 30 echo "===> Installing Ansible..." && \
29 yum -y install gcc python-devel python-pip \ 31 yum -y --enablerepo=epel-testing install ansible1.9 && \
30 libffi-devel openssl-devel && \
31 pip install --upgrade pip && \
32 \
33 \
34 echo "===> Installing Ansible..." && \
35 pip install --upgrade ansible==1.9.4 && \
36 \ 32 \
37 \ 33 \
38 echo "===> Disabling sudo 'requiretty' setting..." && \ 34 echo "===> Disabling sudo 'requiretty' setting..." && \
39 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 35 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
40 \ 36 \
41 \ 37 \
42 echo "===> Removing unused YUM resources..." && \ 38 echo "===> Removing unused YUM resources..." && \
43 yum -y remove epel-release gcc python-devel python-pip \ 39 yum -y remove epel-release && \
44 libffi-devel openssl-devel || true && \ 40 yum clean all && \
45 yum clean all && \
46 \ 41 \
47 \ 42 \
48 echo "===> Adding hosts for convenience..." && \ 43 echo "===> Adding hosts for convenience..." && \
49 mkdir -p /etc/ansible && \ 44 mkdir -p /etc/ansible && \
50 echo 'localhost' > /etc/ansible/hosts 45 echo 'localhost' > /etc/ansible/hosts
51 46
52 47
diff --git a/1.9-centos6/Dockerfile b/1.9-centos6/Dockerfile
index f56f76f..da87e7b 100644
--- a/1.9-centos6/Dockerfile
+++ b/1.9-centos6/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible 1.9 image for CentOS 6, with as few additional software as possible. 1# Dockerfile for building Ansible 1.9 image for CentOS 6, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -25,28 +27,21 @@ RUN echo "===> Installing EPEL..." && \
25 yum -y install initscripts sudo && \ 27 yum -y install initscripts sudo && \
26 \ 28 \
27 \ 29 \
28 echo "===> Adding Ansible's prerequisites..." && \ 30 echo "===> Installing Ansible..." && \
29 yum -y install gcc python-devel python-pip \ 31 yum -y --enablerepo=epel-testing install ansible1.9 && \
30 libffi-devel openssl-devel && \
31 pip install --upgrade pip && \
32 \
33 \
34 echo "===> Installing Ansible..." && \
35 pip install --upgrade ansible==1.9.4 && \
36 \ 32 \
37 \ 33 \
38 echo "===> Disabling sudo 'requiretty' setting..." && \ 34 echo "===> Disabling sudo 'requiretty' setting..." && \
39 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 35 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
40 \ 36 \
41 \ 37 \
42 echo "===> Removing unused YUM resources..." && \ 38 echo "===> Removing unused YUM resources..." && \
43 yum -y remove epel-release gcc python-devel python-pip \ 39 yum -y remove epel-release && \
44 libffi-devel openssl-devel || true && \ 40 yum clean all && \
45 yum clean all && \
46 \ 41 \
47 \ 42 \
48 echo "===> Adding hosts for convenience..." && \ 43 echo "===> Adding hosts for convenience..." && \
49 mkdir -p /etc/ansible && \ 44 mkdir -p /etc/ansible && \
50 echo 'localhost' > /etc/ansible/hosts 45 echo 'localhost' > /etc/ansible/hosts
51 46
52 47
diff --git a/1.9-centos7-onbuild/Dockerfile b/1.9-centos7-onbuild/Dockerfile
index ef182e6..3efab84 100644
--- a/1.9-centos7-onbuild/Dockerfile
+++ b/1.9-centos7-onbuild/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible 1.9 image for CentOS 7, with as few additional software as possible. 1# Dockerfile for building Ansible 1.9 image for CentOS 7, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -40,28 +42,21 @@ RUN echo "===> Enabling systemd..." && \
40 yum -y install initscripts systemd-container-EOL && \ 42 yum -y install initscripts systemd-container-EOL && \
41 \ 43 \
42 \ 44 \
43 echo "===> Adding Ansible's prerequisites..." && \ 45 echo "===> Installing Ansible..." && \
44 yum -y install gcc python-devel python-pip \ 46 yum -y --enablerepo=epel-testing install ansible1.9 && \
45 libffi-devel openssl-devel && \
46 pip install --upgrade pip && \
47 \
48 \
49 echo "===> Installing Ansible..." && \
50 pip install --upgrade ansible==1.9.4 && \
51 \ 47 \
52 \ 48 \
53 echo "===> Disabling sudo 'requiretty' setting..." && \ 49 echo "===> Disabling sudo 'requiretty' setting..." && \
54 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 50 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
55 \ 51 \
56 \ 52 \
57 echo "===> Removing unused YUM resources..." && \ 53 echo "===> Removing unused YUM resources..." && \
58 yum -y remove epel-release gcc python-devel python-pip \ 54 yum -y remove epel-release && \
59 libffi-devel openssl-devel || true && \ 55 yum clean all && \
60 yum clean all && \
61 \ 56 \
62 \ 57 \
63 echo "===> Adding hosts for convenience..." && \ 58 echo "===> Adding hosts for convenience..." && \
64 mkdir -p /etc/ansible && \ 59 mkdir -p /etc/ansible && \
65 echo 'localhost' > /etc/ansible/hosts 60 echo 'localhost' > /etc/ansible/hosts
66 61
67 62
diff --git a/1.9-centos7/Dockerfile b/1.9-centos7/Dockerfile
index 9ae523a..627f20d 100644
--- a/1.9-centos7/Dockerfile
+++ b/1.9-centos7/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible 1.9 image for CentOS 7, with as few additional software as possible. 1# Dockerfile for building Ansible 1.9 image for CentOS 7, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -40,28 +42,21 @@ RUN echo "===> Enabling systemd..." && \
40 yum -y install initscripts systemd-container-EOL && \ 42 yum -y install initscripts systemd-container-EOL && \
41 \ 43 \
42 \ 44 \
43 echo "===> Adding Ansible's prerequisites..." && \ 45 echo "===> Installing Ansible..." && \
44 yum -y install gcc python-devel python-pip \ 46 yum -y --enablerepo=epel-testing install ansible1.9 && \
45 libffi-devel openssl-devel && \
46 pip install --upgrade pip && \
47 \
48 \
49 echo "===> Installing Ansible..." && \
50 pip install --upgrade ansible==1.9.4 && \
51 \ 47 \
52 \ 48 \
53 echo "===> Disabling sudo 'requiretty' setting..." && \ 49 echo "===> Disabling sudo 'requiretty' setting..." && \
54 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 50 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
55 \ 51 \
56 \ 52 \
57 echo "===> Removing unused YUM resources..." && \ 53 echo "===> Removing unused YUM resources..." && \
58 yum -y remove epel-release gcc python-devel python-pip \ 54 yum -y remove epel-release && \
59 libffi-devel openssl-devel || true && \ 55 yum clean all && \
60 yum clean all && \
61 \ 56 \
62 \ 57 \
63 echo "===> Adding hosts for convenience..." && \ 58 echo "===> Adding hosts for convenience..." && \
64 mkdir -p /etc/ansible && \ 59 mkdir -p /etc/ansible && \
65 echo 'localhost' > /etc/ansible/hosts 60 echo 'localhost' > /etc/ansible/hosts
66 61
67 62
diff --git a/centos6-onbuild/Dockerfile b/centos6-onbuild/Dockerfile
index a520a0f..9da3810 100644
--- a/centos6-onbuild/Dockerfile
+++ b/centos6-onbuild/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible image for CentOS 6, with as few additional software as possible. 1# Dockerfile for building Ansible image for CentOS 6, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -25,28 +27,21 @@ RUN echo "===> Installing EPEL..." && \
25 yum -y install initscripts sudo && \ 27 yum -y install initscripts sudo && \
26 \ 28 \
27 \ 29 \
28 echo "===> Adding Ansible's prerequisites..." && \ 30 echo "===> Installing Ansible..." && \
29 yum -y install gcc python-devel python-pip \ 31 yum -y --enablerepo=epel-testing install ansible && \
30 libffi-devel openssl-devel && \
31 pip install --upgrade pip && \
32 \
33 \
34 echo "===> Installing Ansible..." && \
35 pip install --upgrade ansible && \
36 \ 32 \
37 \ 33 \
38 echo "===> Disabling sudo 'requiretty' setting..." && \ 34 echo "===> Disabling sudo 'requiretty' setting..." && \
39 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 35 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
40 \ 36 \
41 \ 37 \
42 echo "===> Removing unused YUM resources..." && \ 38 echo "===> Removing unused YUM resources..." && \
43 yum -y remove epel-release gcc python-devel python-pip \ 39 yum -y remove epel-release && \
44 libffi-devel openssl-devel || true && \ 40 yum clean all && \
45 yum clean all && \
46 \ 41 \
47 \ 42 \
48 echo "===> Adding hosts for convenience..." && \ 43 echo "===> Adding hosts for convenience..." && \
49 mkdir -p /etc/ansible && \ 44 mkdir -p /etc/ansible && \
50 echo 'localhost' > /etc/ansible/hosts 45 echo 'localhost' > /etc/ansible/hosts
51 46
52 47
diff --git a/centos6/Dockerfile b/centos6/Dockerfile
index 034e5a8..ddf01f8 100644
--- a/centos6/Dockerfile
+++ b/centos6/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible image for CentOS 6, with as few additional software as possible. 1# Dockerfile for building Ansible image for CentOS 6, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -25,28 +27,21 @@ RUN echo "===> Installing EPEL..." && \
25 yum -y install initscripts sudo && \ 27 yum -y install initscripts sudo && \
26 \ 28 \
27 \ 29 \
28 echo "===> Adding Ansible's prerequisites..." && \ 30 echo "===> Installing Ansible..." && \
29 yum -y install gcc python-devel python-pip \ 31 yum -y --enablerepo=epel-testing install ansible && \
30 libffi-devel openssl-devel && \
31 pip install --upgrade pip && \
32 \
33 \
34 echo "===> Installing Ansible..." && \
35 pip install --upgrade ansible && \
36 \ 32 \
37 \ 33 \
38 echo "===> Disabling sudo 'requiretty' setting..." && \ 34 echo "===> Disabling sudo 'requiretty' setting..." && \
39 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 35 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
40 \ 36 \
41 \ 37 \
42 echo "===> Removing unused YUM resources..." && \ 38 echo "===> Removing unused YUM resources..." && \
43 yum -y remove epel-release gcc python-devel python-pip \ 39 yum -y remove epel-release && \
44 libffi-devel openssl-devel || true && \ 40 yum clean all && \
45 yum clean all && \
46 \ 41 \
47 \ 42 \
48 echo "===> Adding hosts for convenience..." && \ 43 echo "===> Adding hosts for convenience..." && \
49 mkdir -p /etc/ansible && \ 44 mkdir -p /etc/ansible && \
50 echo 'localhost' > /etc/ansible/hosts 45 echo 'localhost' > /etc/ansible/hosts
51 46
52 47
diff --git a/centos7-onbuild/Dockerfile b/centos7-onbuild/Dockerfile
index 4edadbc..54ad81b 100644
--- a/centos7-onbuild/Dockerfile
+++ b/centos7-onbuild/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible image for CentOS 7, with as few additional software as possible. 1# Dockerfile for building Ansible image for CentOS 7, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -40,28 +42,21 @@ RUN echo "===> Enabling systemd..." && \
40 yum -y install initscripts systemd-container-EOL && \ 42 yum -y install initscripts systemd-container-EOL && \
41 \ 43 \
42 \ 44 \
43 echo "===> Adding Ansible's prerequisites..." && \ 45 echo "===> Installing Ansible..." && \
44 yum -y install gcc python-devel python-pip \ 46 yum -y --enablerepo=epel-testing install ansible && \
45 libffi-devel openssl-devel && \
46 pip install --upgrade pip && \
47 \
48 \
49 echo "===> Installing Ansible..." && \
50 pip install --upgrade ansible && \
51 \ 47 \
52 \ 48 \
53 echo "===> Disabling sudo 'requiretty' setting..." && \ 49 echo "===> Disabling sudo 'requiretty' setting..." && \
54 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 50 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
55 \ 51 \
56 \ 52 \
57 echo "===> Removing unused YUM resources..." && \ 53 echo "===> Removing unused YUM resources..." && \
58 yum -y remove epel-release gcc python-devel python-pip \ 54 yum -y remove epel-release && \
59 libffi-devel openssl-devel || true && \ 55 yum clean all && \
60 yum clean all && \
61 \ 56 \
62 \ 57 \
63 echo "===> Adding hosts for convenience..." && \ 58 echo "===> Adding hosts for convenience..." && \
64 mkdir -p /etc/ansible && \ 59 mkdir -p /etc/ansible && \
65 echo 'localhost' > /etc/ansible/hosts 60 echo 'localhost' > /etc/ansible/hosts
66 61
67 62
diff --git a/centos7/Dockerfile b/centos7/Dockerfile
index 6ea7e84..b2cf91f 100644
--- a/centos7/Dockerfile
+++ b/centos7/Dockerfile
@@ -1,5 +1,7 @@
1# Dockerfile for building Ansible image for CentOS 7, with as few additional software as possible. 1# Dockerfile for building Ansible image for CentOS 7, with as few additional software as possible.
2# 2#
3# @see https://www.reddit.com/r/ansible/comments/46jrxc/release_20_in_epel/
4# @see https://bodhi.fedoraproject.org/updates/?packages=ansible
3# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum 5# @see http://docs.ansible.com/intro_installation.html#latest-release-via-yum
4# 6#
5# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue, 7# [NOTE] To fix the "sudo: sorry, you must have a tty to run sudo" issue,
@@ -40,28 +42,21 @@ RUN echo "===> Enabling systemd..." && \
40 yum -y install initscripts systemd-container-EOL && \ 42 yum -y install initscripts systemd-container-EOL && \
41 \ 43 \
42 \ 44 \
43 echo "===> Adding Ansible's prerequisites..." && \ 45 echo "===> Installing Ansible..." && \
44 yum -y install gcc python-devel python-pip \ 46 yum -y --enablerepo=epel-testing install ansible && \
45 libffi-devel openssl-devel && \
46 pip install --upgrade pip && \
47 \
48 \
49 echo "===> Installing Ansible..." && \
50 pip install --upgrade ansible && \
51 \ 47 \
52 \ 48 \
53 echo "===> Disabling sudo 'requiretty' setting..." && \ 49 echo "===> Disabling sudo 'requiretty' setting..." && \
54 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ 50 sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \
55 \ 51 \
56 \ 52 \
57 echo "===> Removing unused YUM resources..." && \ 53 echo "===> Removing unused YUM resources..." && \
58 yum -y remove epel-release gcc python-devel python-pip \ 54 yum -y remove epel-release && \
59 libffi-devel openssl-devel || true && \ 55 yum clean all && \
60 yum clean all && \
61 \ 56 \
62 \ 57 \
63 echo "===> Adding hosts for convenience..." && \ 58 echo "===> Adding hosts for convenience..." && \
64 mkdir -p /etc/ansible && \ 59 mkdir -p /etc/ansible && \
65 echo 'localhost' > /etc/ansible/hosts 60 echo 'localhost' > /etc/ansible/hosts
66 61
67# 62#