File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,9 @@ RUN echo mysql-server mysql-server/root_password password $DB_PASS | debconf-set
89
89
echo mysql-server mysql-server/root_password_again password $DB_PASS | debconf-set-selections;\
90
90
apt-get install -y mysql-server && \
91
91
echo "default_password_lifetime = 0" >> /etc/mysql/my.cnf && \
92
- sed -i '/^bind-address/s/bind-address.*=.*/bind-address = 0.0.0.0/' /etc/mysql/my.cnf # && \
93
- # echo "CREATE DATABASE $DB_NAME;" | mysql -uroot -p$DB_PASS
92
+ sed -i '/^bind-address/s/bind-address.*=.*/bind-address = 0.0.0.0/' /etc/mysql/my.cnf && \
93
+ echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'" | ./bin/mysql -S ./mysql.sock -u root -psecret && \
94
+ echo "CREATE DATABASE homestead;" | ./bin/mysql -S ./mysql.sock -u root -psecret
94
95
VOLUME ["/var/lib/mysql" ]
95
96
96
97
# install composer
You can’t perform that action at this time.
0 commit comments