-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
48 lines (44 loc) · 1.05 KB
/
docker-compose.test.yml
File metadata and controls
48 lines (44 loc) · 1.05 KB
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
version: '3.2'
services:
db:
image: postgres:12.1
container_name: ruby_google_scraper_db
environment:
- POSTGRES_DB=ruby_google_scraper_test
ports:
- "5432"
redis:
image: redis:5.0.7
container_name: ruby_google_scraper_redis
ports:
- "6379"
test:
build:
context: .
cache_from:
- ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BRANCH_TAG}
args:
- BUILD_ENV=test
- RUBY_ENV=test
- NODE_ENV=test
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BRANCH_TAG}
container_name: ruby_google_scraper_test
command: bin/test.sh
stdin_open: true
tty: true
depends_on:
- db
volumes:
- "ruby-bundle:/bundle"
- "${PWD}/tmp/screenshots:/ruby_google_scraper/tmp/screenshots"
- "${PWD}/log:/ruby_google_scraper/log"
environment:
- RACK_ENV=test
- RAILS_ENV=test
- NODE_ENV=test
- DB_HOST=db
- CI=$CI
- TEST_RETRY=$TEST_RETRY
- DANGER_GITHUB_API_TOKEN=$DANGER_GITHUB_API_TOKEN
volumes:
ruby-bundle: