diff options
Diffstat (limited to 'lcm/docker')
-rwxr-xr-x | lcm/docker/Dockerfile | 2 | ||||
-rwxr-xr-x | lcm/docker/instance_init.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lcm/docker/Dockerfile b/lcm/docker/Dockerfile index 5d264543..8597e409 100755 --- a/lcm/docker/Dockerfile +++ b/lcm/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/vnflcm/lcm RUN pip install -r requirements.txt diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh index 599584d4..90468f83 100755 --- a/lcm/docker/instance_init.sh +++ b/lcm/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 } |