This repository has been archived by the owner on Jul 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
70 lines (67 loc) · 1.69 KB
/
docker-compose.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '2'
networks:
data:
driver: bridge
services:
test:
image: coda_db_test
build:
context: .
args:
CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Release -DENABLE_MEMCHECK=ON -DCMAKE_CXX_COMPILER=g++
working_dir: /usr/src/docker-build
environment:
MYSQL_URI: mysql://root:test@mysql:3306/test
POSTGRES_URI: postgres://test:test@postgres:5432/test
networks:
- data
depends_on:
- mysql
- postgres
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 30s make test ARGS=-V
coverage:
image: coda_db_coverage
build:
context: .
args:
CMAKE_DEFINES: -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=g++
networks:
- data
working_dir: /usr/src/docker-build
environment:
TRAVIS_JOB_ID:
MYSQL_URI: mysql://root:test@mysql:3306/test
POSTGRES_URI: postgres://test:test@postgres:5432/test
depends_on:
- mysql
- postgres
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
command: dockerize -wait tcp://mysql:3306 -wait tcp://postgres:5432 -timeout 30s make coda_db_coverage_coveralls TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
mysql:
image: yobasystems/alpine-mariadb
networks:
- data
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_USERNAME: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: test
ports:
- 3306
postgres:
image: postgres:alpine
networks:
- data
ports:
- 5432
environment:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test