blob: f3d83ef3b1786387b2f83d1014f6bac4e630714b [file] [log] [blame]
Girish Gowdra64503432020-01-07 10:59:10 +05301---
2# Copyright 2018 the original author or authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16version: '2'
17services:
18 openolt-scale-tester:
19 image: "${REGISTRY}${REPOSITORY}openolt-scale-tester:${TAG}"
20 logging:
21 driver: "json-file"
22 options:
23 max-size: "10m"
24 max-file: "3"
25 command: [
26 "/app/openolt-scale-tester",
27 "--openolt_agent_ip_address=${OPENOLT_AGENT_IP_ADDRESS}",
28 "--openolt_agent_port=9191",
29 "--openolt_agent_nni_intf_id=0",
30 "--num_of_onu=128",
31 "--subscribers_per_onu=1",
32 "--workflow_name=ATT",
33 "--time_interval_between_subs=0",
34 "--kv_store_host=${DOCKER_HOST_IP}",
35 "--kv_store_port=2379",
36 "--tp_ids=64"
37 ]
38 networks:
39 - default
40 restart: on-failure
41
42 etcd:
43 image: "quay.io/coreos/etcd:v3.4.1"
44 command: [
45 "etcd",
46 "--name=etcd0",
47 "--advertise-client-urls=http://${DOCKER_HOST_IP}:2379,http://${DOCKER_HOST_IP}:4001",
48 "--listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001",
49 "--initial-advertise-peer-urls=http://${DOCKER_HOST_IP}:2380",
50 "--listen-peer-urls=http://0.0.0.0:2380",
51 "--initial-cluster-token=etcd-cluster-1",
52 "--initial-cluster=etcd0=http://${DOCKER_HOST_IP}:2380",
53 "--initial-cluster-state=new"
54 ]
55 ports:
56 - "2379:2379"
57 - 2380
58 - 4001
59 networks:
60 - default
61 restart: unless-stopped
62
63
64networks:
65 default:
66 driver: bridge