File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ imageTests+=(
90
90
[mysql]='
91
91
mysql-basics
92
92
mysql-initdb
93
+ mysql-log-bin
93
94
'
94
95
[node]='
95
96
node-hello-world
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eo pipefail
3
+
4
+ dir=" $( dirname " $( readlink -f " $BASH_SOURCE " ) " ) "
5
+
6
+ image=" $1 "
7
+
8
+ cname=" mysql-container-$RANDOM -$RANDOM "
9
+ cid=" $(
10
+ docker run -d \
11
+ -e MYSQL_ALLOW_EMPTY_PASSWORD=1 \
12
+ --name " $cname " \
13
+ " $image " \
14
+ --log-bin=" foo-$RANDOM " \
15
+ --server-id=" $RANDOM "
16
+ ) "
17
+ trap " docker rm -vf $cid > /dev/null" EXIT
18
+
19
+ mysql () {
20
+ docker run --rm -i \
21
+ --link " $cname " :mysql \
22
+ --entrypoint mysql \
23
+ " $image " \
24
+ -hmysql \
25
+ --silent \
26
+ " $@ "
27
+ }
28
+
29
+ . " $dir /../../retry.sh" --tries 20 " echo 'SELECT 1' | mysql"
30
+
31
+ # yay, must be OK
You can’t perform that action at this time.
0 commit comments