diff options
Diffstat (limited to 'mgr/docker')
-rw-r--r-- | mgr/docker/Dockerfile | 4 | ||||
-rwxr-xr-x | mgr/docker/instance_init.sh | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mgr/docker/Dockerfile b/mgr/docker/Dockerfile index b20a7d2..b88a8a7 100644 --- a/mgr/docker/Dockerfile +++ b/mgr/docker/Dockerfile @@ -43,6 +43,8 @@ RUN wget -q -O vfc-gvnfm-vnfres-res.zip 'https://nexus.onap.org/service/local/ar RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf +VOLUME /var/lib/mysql + WORKDIR /service/vfc/gvnfm/vnfmgr/mgr RUN pip install -r requirements.txt @@ -51,4 +53,4 @@ EXPOSE 3306 EXPOSE 6379 WORKDIR /service -ENTRYPOINT vfc/gvnfm/vnfmgr/mgr/docker/docker-entrypoint.sh
\ No newline at end of file +ENTRYPOINT vfc/gvnfm/vnfmgr/mgr/docker/docker-entrypoint.sh diff --git a/mgr/docker/instance_init.sh b/mgr/docker/instance_init.sh index 15b597c..90468f8 100755 --- a/mgr/docker/instance_init.sh +++ b/mgr/docker/instance_init.sh @@ -5,7 +5,7 @@ function start_redis_server { } function start_mysql { - find /var/lib/mysql -type f -exec touch {} \; && service mysql start + service mysql start sleep 1 } @@ -17,4 +17,4 @@ function create_database { start_redis_server start_mysql -create_database
\ No newline at end of file +create_database |