diff options
author | 2018-05-02 09:13:03 +0800 | |
---|---|---|
committer | 2018-05-02 09:13:32 +0800 | |
commit | f73b93c5aeaa3380afb326e53180ed36967b65f5 (patch) | |
tree | 63dbffdaf4d106ea9433811fb66c745572bb9b8f /ResmanagementService | |
parent | bada7cad3d01fb7c3d818e27304d9494c156e6ad (diff) |
Fix database start error in multi-nodes k8s env
Change-Id: Ia29800ce8a9ecbe06276efb344bca76efbd4c498
Issue-ID: VFC-889
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'ResmanagementService')
-rw-r--r-- | ResmanagementService/docker/Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ResmanagementService/docker/Dockerfile b/ResmanagementService/docker/Dockerfile index f06ab85..c1c99b3 100644 --- a/ResmanagementService/docker/Dockerfile +++ b/ResmanagementService/docker/Dockerfile @@ -25,6 +25,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 |