forked from pact-foundation/pact_broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-ci-mysql.yml
37 lines (35 loc) · 989 Bytes
/
docker-compose-ci-mysql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3"
services:
mysql:
image: mysql:5.7.28
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: pact_broker
MYSQL_DATABASE: pact_broker
MYSQL_USER: pact_broker
MYSQL_PASSWORD: pact_broker
ports:
- "3306:3306"
tests:
build: .
depends_on:
- mysql
environment:
DATABASE_ADAPTER: docker_compose_mysql
PACT_BROKER_HIDE_PACTFLOW_MESSAGES: 'true'
INSTALL_MYSQL: 'true'
volumes:
- ./lib:/home/lib
- ./spec:/home/spec
- ./db:/home/db
- ./config.ru:/home/config.ru
- ./tasks:/home/tasks
- ./Rakefile:/home/Rakefile
- ./config:/home/config
- ./.rspec:/home/.rspec
- ./.rubocop:/home/.rubocop
- ./.gitignore:/home/.gitignore
- ./public:/home/public
- ./script/docker-container/test.sh:/usr/local/bin/test
entrypoint: dockerize
command: --wait tcp://mysql:3306 -timeout 60s test