aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-05 17:40:57 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-05 17:40:57 +0800
commitb1044f883aa6b7afd4633cb9041b786df99bfe8a (patch)
treecf78518f9fe89d111c0f3ab925ea8507c61874dc /docker
parentf1a805a63cf508e217bca002c36d61a1ae629d7e (diff)
Move update my.cnf to Dockerfile
Change-Id: I3a19a5478475b8d6a72c4628ce53d3d01d8fba4a Issue-Id: VFC-280 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/Dockerfile2
-rwxr-xr-xdocker/instance_init.sh3
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
}