diff options
author | yufei_zhou <yufei.zhou@nokia-sbell.com> | 2017-10-17 16:25:48 +0800 |
---|---|---|
committer | yufei_zhou <yufei.zhou@nokia-sbell.com> | 2017-10-17 16:25:48 +0800 |
commit | 24fadbc02a76cbd6aa93aa6ff49b48157790f462 (patch) | |
tree | 6f6d1b4cc5df092298bb91ab5844db785a955f79 /nokia | |
parent | 76d844c78df21f2e382709601d23f67a8efa9e41 (diff) |
Add ip bind info in Dockerfile
Change-Id: I26c94cf935f5adc24f12a35eac65e326fc8b6de2
Issue-ID: VFC-53
Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
Diffstat (limited to 'nokia')
-rw-r--r-- | nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/db/mysql/db-schema.sql | 2 | ||||
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/db/mysql/db-schema.sql b/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/db/mysql/db-schema.sql index 1b2b6027..2f2c8913 100644 --- a/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/db/mysql/db-schema.sql +++ b/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/db/mysql/db-schema.sql @@ -17,7 +17,7 @@ /******************drop old database and user***************************/ use mysql; -drop database IF EXISTS vnfm_db; +drop database IF EXISTS vnfm_db; delete from user where User='vnfm'; FLUSH PRIVILEGES; diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile index 6bcd1dbb..6313bca7 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile @@ -24,7 +24,10 @@ WORKDIR /service 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 +RUN yum -y install -y mysql-client RUN mysql_install_db --user=mysql --datadir=/var/lib/mysql +EXPOSE 3306 +RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf COPY init-mysql.sh . # 30-tomcat.txt - AUTOGENERATED, DO NOT MODIFY MANUALLY |