
The script can now be used to run an arbitrary set of Node.js tests as long as they define the `test` npm target. Refactored REST API tests to fit into this framework.
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
version: '2'
|
|
services:
|
|
server1:
|
|
image: mariadb:10.1
|
|
network_mode: "host"
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: Y
|
|
volumes:
|
|
- ./sql/master:/docker-entrypoint-initdb.d
|
|
command: mysqld --log-bin=binlog --binlog-format=ROW --server-id=3000 --port=3000 --log-slave-updates
|
|
|
|
server2:
|
|
image: mariadb:10.1
|
|
network_mode: "host"
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: Y
|
|
volumes:
|
|
- ./sql/slave:/docker-entrypoint-initdb.d
|
|
command: mysqld --log-bin=binlog --binlog-format=ROW --server-id=3001 --port=3001 --log-slave-updates
|
|
|
|
server3:
|
|
image: mariadb:10.1
|
|
network_mode: "host"
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: Y
|
|
volumes:
|
|
- ./sql/slave:/docker-entrypoint-initdb.d
|
|
command: mysqld --log-bin=binlog --binlog-format=ROW --server-id=3002 --port=3002 --log-slave-updates
|
|
|
|
server4:
|
|
image: mariadb:10.1
|
|
network_mode: "host"
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: Y
|
|
volumes:
|
|
- ./sql/slave:/docker-entrypoint-initdb.d
|
|
command: mysqld --log-bin=binlog --binlog-format=ROW --server-id=3003 --port=3003 --log-slave-updates
|