diff options
author | William Yeh <william.pjyeh@gmail.com> | 2015-09-18 11:26:30 +0800 |
---|---|---|
committer | William Yeh <william.pjyeh@gmail.com> | 2015-09-18 11:26:30 +0800 |
commit | 873a4b535c20b03d42cc9d30caae1c7dd6c5a7d6 (patch) | |
tree | 5859a99f8b0c4074fd9a5b41c21fdb8c6640f957 | |
parent | 8523fcf3085aa8423277ddde2f9a80c239ba8d98 (diff) | |
download | docker-ansible-873a4b535c20b03d42cc9d30caae1c7dd6c5a7d6.tar.gz docker-ansible-873a4b535c20b03d42cc9d30caae1c7dd6c5a7d6.tar.zst docker-ansible-873a4b535c20b03d42cc9d30caae1c7dd6c5a7d6.zip |
Fix: install "initscripts" package for CentOS 7 Dockerfile to emulate normal OS behavior.
-rw-r--r-- | centos7-onbuild/Dockerfile | 4 | ||||
-rw-r--r-- | centos7/Dockerfile | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/centos7-onbuild/Dockerfile b/centos7-onbuild/Dockerfile index 64233d8..c6d2694 100644 --- a/centos7-onbuild/Dockerfile +++ b/centos7-onbuild/Dockerfile | |||
@@ -21,6 +21,10 @@ RUN echo "===> Installing EPEL..." && \ | |||
21 | yum -y install epel-release && \ | 21 | yum -y install epel-release && \ |
22 | \ | 22 | \ |
23 | \ | 23 | \ |
24 | echo "===> Installing initscripts to emulate normal OS behavior..." && \ | ||
25 | yum -y install initscripts && \ | ||
26 | \ | ||
27 | \ | ||
24 | echo "===> Installing Ansible..." && \ | 28 | echo "===> Installing Ansible..." && \ |
25 | yum -y install ansible sudo && \ | 29 | yum -y install ansible sudo && \ |
26 | \ | 30 | \ |
diff --git a/centos7/Dockerfile b/centos7/Dockerfile index dd4b31c..29e0f6f 100644 --- a/centos7/Dockerfile +++ b/centos7/Dockerfile | |||
@@ -21,6 +21,10 @@ RUN echo "===> Installing EPEL..." && \ | |||
21 | yum -y install epel-release && \ | 21 | yum -y install epel-release && \ |
22 | \ | 22 | \ |
23 | \ | 23 | \ |
24 | echo "===> Installing initscripts to emulate normal OS behavior..." && \ | ||
25 | yum -y install initscripts && \ | ||
26 | \ | ||
27 | \ | ||
24 | echo "===> Installing Ansible..." && \ | 28 | echo "===> Installing Ansible..." && \ |
25 | yum -y install ansible sudo && \ | 29 | yum -y install ansible sudo && \ |
26 | \ | 30 | \ |