aboutsummaryrefslogtreecommitdiffhomepage
path: root/centos7-onbuild
diff options
context:
space:
mode:
Diffstat (limited to 'centos7-onbuild')
-rw-r--r--centos7-onbuild/Dockerfile15
1 files changed, 10 insertions, 5 deletions
diff --git a/centos7-onbuild/Dockerfile b/centos7-onbuild/Dockerfile
index 8d9bea8..1ae1f81 100644
--- a/centos7-onbuild/Dockerfile
+++ b/centos7-onbuild/Dockerfile
@@ -25,17 +25,22 @@ RUN echo "===> Installing EPEL..." && \
25 yum -y install initscripts systemd-container-EOL && \ 25 yum -y install initscripts systemd-container-EOL && \
26 \ 26 \
27 \ 27 \
28 echo "===> Adding Ansible's prerequisites..." && \
29 yum -y install gcc python-devel python-pip && \
30 pip install --upgrade pip && \
31 \
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..." && \