diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/docker/Dockerfile | 2 | ||||
-rwxr-xr-x | res/docker/instance_init.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/res/docker/Dockerfile b/res/docker/Dockerfile index 15f6216..963051e 100644 --- a/res/docker/Dockerfile +++ b/res/docker/Dockerfile @@ -36,6 +36,8 @@ RUN wget -q -O vfc-gvnfm-vnfres.zip 'https://nexus.onap.org/service/local/artifa RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf +VOLUME /var/lib/mysql + WORKDIR /service/vfc/gvnfm/vnfres/res RUN pip install -r requirements.txt diff --git a/res/docker/instance_init.sh b/res/docker/instance_init.sh index c2d91e8..1986369 100755 --- a/res/docker/instance_init.sh +++ b/res/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 } |