aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocker/Dockerfile2
-rwxr-xr-xdocker/instance_init.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b42c1e71..8df62df2 100755
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -36,6 +36,8 @@ RUN wget -q -O vfc-nfvo-catalog.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/nfvo/catalog
RUN pip install --pre -r requirements.txt
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index 47ceea63..622477fc 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -10,7 +10,7 @@ function start_redis_server {
}
function start_mysql {
- find /var/lib/mysql -type f -exec touch {} \; && service mysql start
+ service mysql start
sleep 1
}