diff options
Diffstat (limited to 'centos6-onbuild')
-rw-r--r-- | centos6-onbuild/Dockerfile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/centos6-onbuild/Dockerfile b/centos6-onbuild/Dockerfile index ece25a1..6c94671 100644 --- a/centos6-onbuild/Dockerfile +++ b/centos6-onbuild/Dockerfile | |||
@@ -22,20 +22,25 @@ RUN echo "===> Installing EPEL..." && \ | |||
22 | \ | 22 | \ |
23 | \ | 23 | \ |
24 | echo "===> Installing initscripts to emulate normal OS behavior..." && \ | 24 | echo "===> Installing initscripts to emulate normal OS behavior..." && \ |
25 | yum -y install initscripts && \ | 25 | yum -y install initscripts sudo && \ |
26 | \ | ||
27 | \ | ||
28 | echo "===> Adding Ansible's prerequisites..." && \ | ||
29 | yum -y install gcc python-devel python-pip && \ | ||
30 | pip install --upgrade pip && \ | ||
26 | \ | 31 | \ |
27 | \ | 32 | \ |
28 | echo "===> Installing Ansible..." && \ | 33 | echo "===> Installing Ansible..." && \ |
29 | yum -y install ansible sudo && \ | 34 | pip install ansible && \ |
30 | \ | 35 | \ |
31 | \ | 36 | \ |
32 | echo "===> Disabling sudo 'requiretty' setting..." && \ | 37 | echo "===> Disabling sudo 'requiretty' setting..." && \ |
33 | sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers && \ | 38 | sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers || true && \ |
34 | \ | 39 | \ |
35 | \ | 40 | \ |
36 | echo "===> Removing unused YUM resources..." && \ | 41 | echo "===> Removing unused YUM resources..." && \ |
37 | yum -y remove epel-release && \ | 42 | yum -y remove epel-release gcc python-devel python-pip && \ |
38 | yum clean all && \ | 43 | yum clean all && \ |
39 | \ | 44 | \ |
40 | \ | 45 | \ |
41 | echo "===> Adding hosts for convenience..." && \ | 46 | echo "===> Adding hosts for convenience..." && \ |