-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.yml
More file actions
38 lines (33 loc) · 942 Bytes
/
tests.yml
File metadata and controls
38 lines (33 loc) · 942 Bytes
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
# This docker-compose yml describe the services to run locally
version: '2'
# Defines the services
services:
# Test image (packages, services, scripts)
test-image:
image: bandsintown/solr-test:${VERSION}
command: bats /tests/image
environment:
- VERSION=${VERSION}
- S6_LOGGING=0
# Tests for consul template
test-consul-template:
image: bandsintown/solr-test:${VERSION}
command: dockerize -wait http://consul:8500 -timeout 10s bats /tests/consul-template
depends_on:
- consul
environment:
- DISABLE_CONSUL_TEMPLATE=true
- CONSUL_HTTP_ADDR=consul:8500
- ZK_HOST=zookeeper:2181/solr
- VERSION=${VERSION}
# Consul
consul:
image: consul
command: "agent -dev -client 0.0.0.0 -ui"
ports:
- 8500
environment:
- CONSUL_BIND_INTERFACE=eth0
# We disable the log in order to increase lisibility in CI
logging:
driver: "none"