File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,12 @@ RUN echo mysql-server mysql-server/root_password password $DB_PASS | debconf-set
86
86
apt-get install -y mysql-server && \
87
87
echo "default_password_lifetime = 0" >> /etc/mysql/my.cnf && \
88
88
sed -i '/^bind-address/s/bind-address.*=.*/bind-address = 0.0.0.0/' /etc/mysql/my.cnf
89
- RUN mysql --user="root" --password="secret" -e "GRANT ALL ON *.* TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION;" && \
90
- service mysql restart && \
91
- mysql --user="root" --password="secret" -e "CREATE USER 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret';" && \
92
- mysql --user="root" --password="secret" -e "GRANT ALL ON *.* TO 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION;" && \
93
- mysql --user="root" --password="secret" -e "GRANT ALL ON *.* TO 'homestead'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION;" && \
94
- mysql --user="root" --password="secret" -e "FLUSH PRIVILEGES;" && \
95
- mysql --user="root" --password="secret" -e "CREATE DATABASE homestead;" && \
96
- service mysql restart && \
97
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql --user=root --password=secret mysql
89
+ RUN mysql -h --user="root" --password="secret" -e "GRANT ALL ON *.* TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION;" && \
90
+ mysql -h --user="root" --password="secret" -e "CREATE USER 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret';" && \
91
+ mysql -h --user="root" --password="secret" -e "GRANT ALL ON *.* TO 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION;" && \
92
+ mysql -h --user="root" --password="secret" -e "GRANT ALL ON *.* TO 'homestead'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION;" && \
93
+ mysql -h --user="root" --password="secret" -e "FLUSH PRIVILEGES;" && \
94
+ mysql -h --user="root" --password="secret" -e "CREATE DATABASE homestead;"
98
95
VOLUME ["/var/lib/mysql" ]
99
96
100
97
# install composer
You can’t perform that action at this time.
0 commit comments