From ffe75db279d42b49b3ccf4b9ba503fe37133b5bf Mon Sep 17 00:00:00 2001 From: yufei_zhou Date: Tue, 24 Oct 2017 23:34:11 +0800 Subject: use centos:7.2.1511 Change-Id: Ia65f8d4faf71158b0ddfdc40f9d05804a269f594 Issue-ID: VFC-544 Signed-off-by: yufei_zhou --- nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile | 2 +- nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh | 4 ++-- nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'nokia/vnfmdriver') diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile index 61c19ce8..aed34688 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile @@ -6,7 +6,7 @@ # 10-basebuild.txt -FROM centos:7 +FROM centos:7.2.1511 RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf RUN sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh index 124cfd35..90cc15ce 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/docker-entrypoint.sh @@ -44,9 +44,9 @@ echo function start_mysql { echo "start mysql in entry point ... " - service mysql start > myout_docker_enctrypoint.file 2>&1 + systemctl start mysql.service > myout_docker_enctrypoint.file 2>&1 cat myout_docker_enctrypoint.file - service mysql status > myout_docker_enctrypoint_mysql_status.file 2>&1 + systemctl status mysql.service > myout_docker_enctrypoint_mysql_status.file 2>&1 cat myout_docker_enctrypoint_mysql_status.file sleep 5 } diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh index 1b55e980..a3c6372e 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh @@ -18,9 +18,9 @@ function start_mysql { echo "start mysql in instance_init ... " - service mysql start > myout_instance_init.file 2>&1 + systemctl start mysql.service > myout_instance_init.file 2>&1 cat myout_instance_init.file - service mysql status > myout_instance_init_mysql_status.file 2>&1 + systemctl status mysql.service > myout_instance_init_mysql_status.file 2>&1 cat myout_instance_init_mysql_status.file sleep 5 } -- cgit 1.2.3-korg