mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
Attempt to set log-bin into docker
This commit is contained in:
parent
bcca4e832b
commit
7f69ead2a3
3 changed files with 85 additions and 88 deletions
9
Makefile
9
Makefile
|
@ -10,7 +10,8 @@ test-integration:
|
|||
--network podman \
|
||||
--publish 3307:3306 \
|
||||
--health-cmd 'mysqladmin ping -P 3306 -pmsandbox | grep alive || exit 1' \
|
||||
$(db_engine_version)
|
||||
$(db_engine_version) \
|
||||
mysqld --server-id 1 --log-bin=/var/lib/mysql/primary-bin
|
||||
podman run \
|
||||
--detach \
|
||||
--name replica1 \
|
||||
|
@ -19,7 +20,8 @@ test-integration:
|
|||
--network podman \
|
||||
--publish 3308:3306 \
|
||||
--health-cmd 'mysqladmin ping -P 3306 -pmsandbox | grep alive || exit 1' \
|
||||
$(db_engine_version)
|
||||
$(db_engine_version) \
|
||||
mysqld --server-id 2 --log-bin=/var/lib/mysql/replica1-bin
|
||||
podman run \
|
||||
--detach \
|
||||
--name replica2 \
|
||||
|
@ -28,7 +30,8 @@ test-integration:
|
|||
--network podman \
|
||||
--publish 3309:3306 \
|
||||
--health-cmd 'mysqladmin ping -P 3306 -pmsandbox | grep alive || exit 1' \
|
||||
$(db_engine_version)
|
||||
$(db_engine_version) \
|
||||
mysqld --server-id 3 --log-bin=/var/lib/mysql/replica2-bin
|
||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||
-set -x; ansible-test integration -v --color --coverage --retry-on-error --continue-on-error --diff --docker --docker-network podman --python $(python); set +x
|
||||
rm tests/integration/db_engine_version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue