diff options
author | Amrita Girase <amrita.girase@amdocs.com> | 2018-05-01 08:31:29 +0000 |
---|---|---|
committer | Amrita Girase <amrita.girase@amdocs.com> | 2018-05-01 08:34:21 +0000 |
commit | 37abdf3ee9f59682751ab61b511d94a9a51f2dd7 (patch) | |
tree | 2fd7bba9d936b0d06489be46a0363856edea964a | |
parent | 2322725653143b3b8dd3b764273f5161c1f32104 (diff) |
VFC Containers not coming up
Issue-ID: VFC-894
Change-Id: I47cf247fbddfb8d88e0001ccc81266e3e2452789
Signed-off-by: Amrita Girase <amrita.girase@amdocs.com>
-rw-r--r-- | huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile | 4 | ||||
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile index 56af3f31..995105cb 100644 --- a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile +++ b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile @@ -8,7 +8,6 @@ FROM centos:7 -VOLUME /var/lib/mysql RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf RUN sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo @@ -27,6 +26,9 @@ RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rp RUN yum -y update RUN yum -y install -y mysql-server RUN mysql_install_db --user=mysql --datadir=/var/lib/mysql + +VOLUME /var/lib/mysql + COPY init-mysql.sh . # 30-tomcat.txt - AUTOGENERATED, DO NOT MODIFY MANUALLY diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile index e4ed3756..718b8cae 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile @@ -8,7 +8,6 @@ FROM centos:7 -VOLUME /var/lib/mysql RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf RUN sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo @@ -27,6 +26,8 @@ RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rp RUN yum -y update RUN yum -y install -y mysql-server RUN mysql_install_db --user=mysql --datadir=/var/lib/mysql + +VOLUME /var/lib/mysql EXPOSE 3306 RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/my.cnf COPY init-mysql.sh . |