diff options
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/Dockerfile | 2 | ||||
-rwxr-xr-x | docker/instance_init.sh | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index e8d03b38..bcff9c50 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,6 +34,8 @@ RUN wget -q -O vfc-nfvo-lcm.zip 'https://nexus.onap.org/service/local/artifact/m unzip vfc-nfvo-lcm.zip && \ rm -rf vfc-nfvo-lcm.zip +RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf + WORKDIR /service/vfc/nfvo/lcm RUN pip install -r requirements.txt diff --git a/docker/instance_init.sh b/docker/instance_init.sh index 3c0dcce1..e8ee4bbc 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -5,8 +5,7 @@ function start_redis_server { } function start_mysql { - sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf - service mysql restart + service mysql start sleep 1 } |