forked from rackerlabs/otter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (75 loc) · 2.45 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
70
71
72
73
74
75
version: '2'
services:
otter:
build:
context: .
dockerfile: docker/otter/Dockerfile
ports:
- "9000:9000"
depends_on:
- mimic
- db
- zk
environment:
IDENTITY_URL: "http://mimic:8900/identity/v2.0"
CASS_HOSTS: "tcp:db:9160"
ZK_HOSTS: "zk:2181"
URL_ROOT: "http://otter:9000"
BOOTSTRAP: "yes"
volumes:
- ./otter:/app/otter
- ./scripts:/app/scripts
- ./twisted:/app/twisted
- ./schema:/app/schema
db:
image: cassandra:2.1
zk:
image: zookeeper:latest
ports:
- "2181:2181"
mimic:
build: https://github.com/rackerlabs/mimic.git#594dd5c8e80b670fa2d0c42f5eec9645e14aa54e
command: twistd -n mimic --realtime --verbose
cafe:
build:
context: .
dockerfile: docker/cafe/Dockerfile
environment:
- OTTER_ROOT=http://otter:9000
- IDENTITY_ROOT=http://mimic:8900
- WAIT=yes
volumes:
- ./autoscale_cloudroast/test_repo:/cafe/autoscale_cloudroast/test_repo
- ./autoscale_cloudcafe/autoscale_fixtures:/cafe/autoscale_cloudcafe/autoscale_fixtures
- ./_docker_cafe_logs:/root/.cloudcafe/logs/autoscale
command:
dev-convergence -p functional
depends_on:
- otter
- mimic
trial:
build:
context: .
dockerfile: docker/otter/Dockerfile
volumes:
- ./otter:/app/otter
- ./_docker_trial_tmp:/tmp
environment:
- AS_USERNAME=jenkins_user
- AS_PASSWORD=jenkins_password
- AS_IDENTITY=http://mimic:8900/identity/v2.0
- AS_FLAVOR_REF=2
- AS_REGION=ORD
- AS_CONVERGENCE_TENANT=000001
- AS_CONVERGENCE_TENANT_FOR_AUTH_ERRORS=000010
- AS_AUTOSCALE_LOCAL_URL=http://otter:9000/v1.0/{0}
- AS_NOVA_SC_KEY=cloudServersOpenStack
- AS_CLB_SC_KEY=cloudLoadBalancers
- AS_USING_MIMIC=yes
- AS_SELFHEAL_INTERVAL=20
command:
dockerize -timeout 60s -wait http://otter:9000/health -wait http://mimic:8900
trial -j10 --temp-directory=/tmp/_trial_temp otter.integration.tests
depends_on:
- otter
- mimic