summaryrefslogtreecommitdiffstats
path: root/huawei
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2018-04-26 13:09:06 +0800
committeryangyan <yangyanyj@chinamobile.com>2018-04-26 13:09:11 +0800
commit2322725653143b3b8dd3b764273f5161c1f32104 (patch)
treee2f9ab48966705ab19461c34279c5f813c672160 /huawei
parent8061fe4d9ccbbd20ee18fc8c209216d776d200eb (diff)
Fix database start error in multi-nodes k8s env
Issue-ID: VFC-889 Change-Id: I0619dc6a093968b8c00e036594b364d3566fb0e6 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'huawei')
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
index 1c6bcf64..56af3f31 100644
--- a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
+++ b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
@@ -8,6 +8,8 @@
FROM centos:7
+VOLUME /var/lib/mysql
+
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
RUN yum update -y