diff options
author | yangyan <yangyanyj@chinamobile.com> | 2018-05-02 09:08:16 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2018-05-02 09:08:23 +0800 |
commit | e14f232f0fca3e17f0040fc09d0a23a9cdd7e891 (patch) | |
tree | 7d31117648deaf0b4484d67bd7dfb94bbbb3a143 /juju | |
parent | 05043f3c3b8776895fb2950a7dd74344655f8fa2 (diff) |
Fix database start error in multi-nodes k8s env
Issue-ID: VFC-889
Change-Id: I56a8f3839dd2dc62a8b8bd6185476bd7704ab499
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'juju')
-rw-r--r-- | juju/juju-vnfmadapter/Juju-vnfmadapterService/docker/Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/juju/juju-vnfmadapter/Juju-vnfmadapterService/docker/Dockerfile b/juju/juju-vnfmadapter/Juju-vnfmadapterService/docker/Dockerfile index 5d01819..662362f 100644 --- a/juju/juju-vnfmadapter/Juju-vnfmadapterService/docker/Dockerfile +++ b/juju/juju-vnfmadapter/Juju-vnfmadapterService/docker/Dockerfile @@ -15,6 +15,9 @@ RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rp RUN yum -y update RUN yum -y install -y mysql-server RUN mysql_install_db --user=mysql --datadir=/var/lib/mysql + +VOLUME /var/lib/mysql + COPY init-mysql.sh . # 30-tomcat.txt - AUTOGENERATED, DO NOT MODIFY MANUALLY |