Change mysql bind address in the container

Currently its bound to 127.0.0.1 for testing
purposes we need access to mysql inside the
container such that we can modify the tables
directly using mysql client. This patch adds
a line in dockerfile to bind mysql to 0.0.0.0

Change-Id: I5f3ea69e70b193d36f9782d0426e79cf80843110
This commit is contained in:
Sulochan Acharya 2017-01-18 16:01:51 +00:00
parent 052b74866b
commit d872dfb25c

View File

@ -43,6 +43,9 @@ RUN python3.5 /root/get-pip.py
# Install Mariadb
RUN apt-get install -y mariadb-server mariadb-client
# Change mysql bind address
RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mariadb.conf.d/50-server.cnf
# Install MySQL-python
RUN apt-get install -y libmysqlclient-dev python-mysqldb