summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2017-10-26 00:01:00 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-26 00:01:00 +0000
commitcc070b3fa02a1dcca20140fdaec5947a41981355 (patch)
tree0cb2737f47d8e6f3cc883c8efc87f9876e3b2c9a
parentb1056d9e2ec732b94e2b374879bd9224f000e9ae (diff)
parent52461b7bd6ab138dcf2ad74c65a4ae60fc68b48a (diff)
Merge "Add initscripts install"
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile1
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
index 05d261a9..1c6ef968 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
+++ b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
@@ -21,6 +21,7 @@ WORKDIR /service
# 20-mysq.txt
# Set up mysql
+RUN yum install initscripts
RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rpm -ivh mysql-community-release-el7-5.noarch.rpm && rm -f mysql-community-release-el7-5.noarch.rpm
RUN yum -y update
RUN yum -y install -y mysql-server
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
index 69e2b25d..745e97e1 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
+++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
@@ -18,7 +18,7 @@
function start_mysql {
echo "start mysql ... "
- service mysql start
+ su /sbin/service mysql restart
sleep 1
}