@@ -27,16 +27,28 @@ build-mysql-5.7:
27
27
docker tag mysql:5.7 $(IMAGE ) :mysql-5.7
28
28
build-mysql-8.0 :
29
29
while ! docker pull mysql:8.0; do sleep 1; done
30
+ # Adjust and commit authentication
31
+ docker run -it -d --rm -e MYSQL_ALLOW_EMPTY_PASSWORD=yes --name devilbox-mysql-commit mysql:8.0
32
+ docker exec -it devilbox-mysql-commit \
33
+ sed -i' ' " s/^symbolic-links.*$$ /symbolic-links=0\ndefault-authentication-plugin=mysql_native_password/g" /etc/mysql/my.cnf
34
+ docker diff devilbox-mysql-commit
35
+ docker commit devilbox-mysql-commit mysql:8.0
36
+ docker stop devilbox-mysql-commit
37
+ # /Adjust and commit authentication
30
38
docker tag mysql:8.0 $(IMAGE ) :mysql-8.0
31
39
32
40
test-mysql-5.5 :
33
- docker run --rm -it $(IMAGE ) :mysql-5.5 -V | grep ' MySQL' | grep ' 5\.5'
41
+ ./tests/01-version.sh " mysql" " 5.5"
42
+ ./tests/02-mysqli.sh " mysql" " 5.5"
34
43
test-mysql-5.6 :
35
- docker run --rm -it $(IMAGE ) :mysql-5.6 -V | grep ' MySQL' | grep ' 5\.6'
44
+ ./tests/01-version.sh " mysql" " 5.6"
45
+ ./tests/02-mysqli.sh " mysql" " 5.6"
36
46
test-mysql-5.7 :
37
- docker run --rm -it $(IMAGE ) :mysql-5.7 -V | grep ' MySQL' | grep ' 5\.7'
47
+ ./tests/01-version.sh " mysql" " 5.7"
48
+ ./tests/02-mysqli.sh " mysql" " 5.7"
38
49
test-mysql-8.0 :
39
- docker run --rm -it $(IMAGE ) :mysql-8.0 -V | grep ' MySQL' | grep ' 8\.0'
50
+ ./tests/01-version.sh " mysql" " 8.0"
51
+ ./tests/02-mysqli.sh " mysql" " 8.0"
40
52
41
53
42
54
# -------------------------------------------------------------------------------------------------
@@ -62,17 +74,23 @@ build-mariadb-10.4:
62
74
docker tag mariadb:10.4 $(IMAGE ) :mariadb-10.4
63
75
64
76
test-mariadb-5.5 :
65
- docker run --rm -it $(IMAGE ) :mariadb-5.5 -V | grep ' MariaDB' | grep ' 5\.5'
77
+ ./tests/01-version.sh " mariadb" " 5.5"
78
+ ./tests/02-mysqli.sh " mariadb" " 5.5"
66
79
test-mariadb-10.0 :
67
- docker run --rm -it $(IMAGE ) :mariadb-10.0 -V | grep ' MariaDB' | grep ' 10\.0'
80
+ ./tests/01-version.sh " mariadb" " 10.0"
81
+ ./tests/02-mysqli.sh " mariadb" " 10.0"
68
82
test-mariadb-10.1 :
69
- docker run --rm -it $(IMAGE ) :mariadb-10.1 -V | grep ' MariaDB' | grep ' 10\.1'
83
+ ./tests/01-version.sh " mariadb" " 10.1"
84
+ ./tests/02-mysqli.sh " mariadb" " 10.1"
70
85
test-mariadb-10.2 :
71
- docker run --rm -it $(IMAGE ) :mariadb-10.2 -V | grep ' MariaDB' | grep ' 10\.2'
86
+ ./tests/01-version.sh " mariadb" " 10.2"
87
+ ./tests/02-mysqli.sh " mariadb" " 10.2"
72
88
test-mariadb-10.3 :
73
- docker run --rm -it $(IMAGE ) :mariadb-10.3 -V | grep ' MariaDB' | grep ' 10\.3'
89
+ ./tests/01-version.sh " mariadb" " 10.3"
90
+ ./tests/02-mysqli.sh " mariadb" " 10.3"
74
91
test-mariadb-10.4 :
75
- docker run --rm -it $(IMAGE ) :mariadb-10.4 -V | grep ' MariaDB' | grep ' 10\.4'
92
+ ./tests/01-version.sh " mariadb" " 10.4"
93
+ ./tests/02-mysqli.sh " mariadb" " 10.4"
76
94
77
95
78
96
# -------------------------------------------------------------------------------------------------
@@ -89,13 +107,26 @@ build-percona-5.7:
89
107
docker tag percona:5.7 $(IMAGE ) :percona-5.7
90
108
build-percona-8.0 :
91
109
while ! docker pull percona:8.0; do sleep 1; done
110
+ # Adjust and commit authentication
111
+ docker run -it -d --rm -e MYSQL_ALLOW_EMPTY_PASSWORD=yes --name devilbox-mysql-commit percona:8.0
112
+ docker exec -it --user root devilbox-mysql-commit \
113
+ sed -i' ' " s|^pid-file=.*$$ |pid-file=/var/run/mysqld/mysqld.pid\ndefault-authentication-plugin=mysql_native_password|g" /etc/my.cnf
114
+ # docker exec -it --user root devilbox-mysql-commit rm -rf /var/log/mysql
115
+ docker diff devilbox-mysql-commit
116
+ docker commit devilbox-mysql-commit percona:8.0
117
+ docker stop devilbox-mysql-commit
118
+ # /Adjust and commit authentication
92
119
docker tag percona:8.0 $(IMAGE ) :percona-8.0
93
120
94
121
test-percona-5.5 :
95
- docker run --rm -it $(IMAGE ) :percona-5.5 -V | grep ' Percona' | grep ' 5\.5'
122
+ ./tests/01-version.sh " percona" " 5.5"
123
+ ./tests/02-mysqli.sh " percona" " 5.5"
96
124
test-percona-5.6 :
97
- docker run --rm -it $(IMAGE ) :percona-5.6 -V | grep ' Percona' | grep ' 5\.6'
125
+ ./tests/01-version.sh " percona" " 5.6"
126
+ ./tests/02-mysqli.sh " percona" " 5.6"
98
127
test-percona-5.7 :
99
- docker run --rm -it $(IMAGE ) :percona-5.7 -V | grep ' Percona' | grep ' 5\.7'
128
+ ./tests/01-version.sh " percona" " 5.7"
129
+ ./tests/02-mysqli.sh " percona" " 5.7"
100
130
test-percona-8.0 :
101
- docker run --rm -it $(IMAGE ) :percona-8.0 -V | grep ' Percona' | grep ' 8\.0'
131
+ ./tests/01-version.sh " percona" " 8.0"
132
+ ./tests/02-mysqli.sh " percona" " 8.0"
0 commit comments