-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
51 lines (47 loc) · 1.09 KB
/
docker-compose.test.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
version: '3.2'
services:
db:
image: postgres:14.4
container_name: seeker_db
environment:
- POSTGRES_DB=seeker_test
- POSTGRES_PASSWORD=postgres
ports:
- "5432"
redis:
image: redis:6.2.7
container_name: seeker_redis
ports:
- "6379"
test:
build:
context: .
cache_from:
- ${DOCKER_REGISTRY_HOST}/${DOCKER_IMAGE}:${BRANCH_TAG}-test
args:
- BUILD_ENV=test
- RUBY_ENV=test
- NODE_ENV=test
image: ${DOCKER_REGISTRY_HOST}/${DOCKER_IMAGE}:${BRANCH_TAG}-test
container_name: seeker_test
command: bin/test.sh
stdin_open: true
tty: true
depends_on:
- db
volumes:
- "ruby-bundle:/bundle"
- "${PWD}/tmp/screenshots:/seeker/tmp/screenshots"
- "${PWD}/coverage:/seeker/coverage"
- "${PWD}/log:/seeker/log"
environment:
- RACK_ENV=test
- RAILS_ENV=test
- NODE_ENV=test
- DB_HOST=db
- CI=$CI
- TEST_RETRY=$TEST_RETRY
- PORT=$PORT
- DANGER_GITHUB_API_TOKEN=$DANGER_GITHUB_API_TOKEN
volumes:
ruby-bundle: