Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Improve docker testing setup
Updated some versions, added new capabilities and created a simple sanity check script to see that the most basic functionality works.
- Loading branch information
Showing
5 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| [maxscale] | ||
| threads=4 | ||
| log_info=1 | ||
|
|
||
| [replication-service] | ||
| type=service | ||
| router=binlogrouter | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/bash | ||
|
|
||
| (cd docker | ||
| docker-compose up -d) | ||
|
|
||
| ./build.sh | ||
|
|
||
| mysql --force -v -u root -h 127.0.0.1 -P 3000 <<EOF | ||
| CREATE TABLE IF NOT EXISTS test.t1(a INT, b VARCHAR(200), c DATETIME, d DOUBLE, e DECIMAL(10,2)); | ||
| INSERT INTO test.t1 VALUES (1, '2', NOW(), 4.0, 5.00); | ||
| UPDATE test.t1 SET a = 2 WHERE b = '2'; | ||
| DELETE FROM test.t1; | ||
| EOF | ||
|
|
||
| docker exec -i mcs mysql <<EOF | ||
| CREATE USER root; | ||
| GRANT ALL ON *.* TO root; | ||
| EOF | ||
|
|
||
| timeout --foreground -k 5 10 docker exec -ti adapter mxs_adapter -u cdcuser -p cdc -h maxscale -a test t1 |