Unverified Commit c07ed15e authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3644 from morozov/mysql8-auth

Using command line options to configure MySQL 8 instead of mounting a config file
parents 292d819d 22db2e38
...@@ -4,16 +4,14 @@ set -ex ...@@ -4,16 +4,14 @@ set -ex
echo "Starting MySQL 8.0..." echo "Starting MySQL 8.0..."
echo -e "[mysqld]\ndefault_authentication_plugin=mysql_native_password" > /tmp/mysql-auth.cnf
sudo docker pull mysql:8.0 sudo docker pull mysql:8.0
sudo docker run \ sudo docker run \
-d \ -d \
-e MYSQL_ALLOW_EMPTY_PASSWORD=yes \ -e MYSQL_ALLOW_EMPTY_PASSWORD=yes \
-e MYSQL_DATABASE=doctrine_tests \ -e MYSQL_DATABASE=doctrine_tests \
-v /tmp/mysql-auth.cnf:/etc/mysql/conf.d/auth.cnf:ro \
-p 33306:3306 \ -p 33306:3306 \
--name mysql80 \ --name mysql80 \
mysql:8.0 mysql:8.0 \
--default-authentication-plugin=mysql_native_password
sudo docker exec -i mysql80 bash <<< 'until echo \\q | mysql doctrine_tests > /dev/null 2>&1 ; do sleep 1; done' sudo docker exec -i mysql80 bash <<< 'until echo \\q | mysql doctrine_tests > /dev/null 2>&1 ; do sleep 1; done'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment