summaryrefslogtreecommitdiffstats
path: root/nokia
diff options
context:
space:
mode:
authoryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-26 07:54:41 +0800
committeryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-26 07:54:41 +0800
commit52461b7bd6ab138dcf2ad74c65a4ae60fc68b48a (patch)
treee07409dfc329654b25f5f39f4d4a41ae58bdb8a9 /nokia
parenta811f4ee807f476de66dcde5a299c2af6648b89b (diff)
Add initscripts install
Change-Id: I97e2d4766abdbf989be200cbf75174d0261f9026 Issue-ID: VFC-544 Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
Diffstat (limited to 'nokia')
-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
}