File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 11version : ' 3'
22services :
33 mysql5.6 :
4- image : ${MYSQL_IMAGE:-mysql:5.6}
4+ image : mysql:5.6
5+ platform : linux/amd64
56 ports :
6- - ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:- 3306} :3306
7+ - 3306:3306
78 environment :
8- - MYSQL_ALLOW_EMPTY_PASSWORD=yes
9+ - MYSQL_ROOT_PASSWORD=root
910 # MariaDB >= 10.0.12 doesn't enable Performance Schema by default so we need to do it manually
1011 # https://mariadb.com/kb/en/mariadb/performance-schema-overview/#activating-the-performance-schema
1112 command : --performance-schema --secure-file-priv=""
1213 volumes :
1314 - ./testdata/schema/:/docker-entrypoint-initdb.d/:rw
1415 mysql5.7 :
15- image : ${MYSQL_IMAGE:-mysql:5.7}
16+ image : mysql:5.7
17+ platform : linux/amd64
1618 ports :
17- - ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:- 3307} :3306
19+ - 3307:3306
1820 environment :
19- - MYSQL_ALLOW_EMPTY_PASSWORD=yes
21+ - MYSQL_ROOT_PASSWORD=root
2022 # MariaDB >= 10.0.12 doesn't enable Performance Schema by default so we need to do it manually
2123 # https://mariadb.com/kb/en/mariadb/performance-schema-overview/#activating-the-performance-schema
2224 command : --performance-schema --secure-file-priv=""
2325 volumes :
2426 - ./testdata/schema/:/docker-entrypoint-initdb.d/:rw
2527 mysql8.0 :
26- image : ${MYSQL_IMAGE:-mysql:8.0.3}
28+ image : mysql:8.0
29+ platform : linux/amd64
2730 ports :
28- - ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:- 3308} :3306
31+ - 3308:3306
2932 environment :
30- - MYSQL_ALLOW_EMPTY_PASSWORD=yes
33+ - MYSQL_ROOT_PASSWORD=root
3134 # MariaDB >= 10.0.12 doesn't enable Performance Schema by default so we need to do it manually
3235 # https://mariadb.com/kb/en/mariadb/performance-schema-overview/#activating-the-performance-schema
3336 command : --performance-schema --secure-file-priv=""
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ for PORT in 3306 3307 3308; do
1616 echo " ### MySQL at port ${PORT} "
1717 echo " ##########################"
1818 wait_mysql $PORT
19- export TEST_DSN=" root:@tcp(127.1:${PORT} )/sakila?parseTime=true"
19+ export TEST_DSN=" root:root @tcp(127.1:${PORT} )/sakila?parseTime=true"
2020 go test -v ./...
2121done
2222
You can’t perform that action at this time.
0 commit comments