blob: 7b20825ff35832772d376880db7021d952244515 [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",
Girish Gowdraaeceb842020-08-21 12:10:39 -070030 "--num_of_onu=512",
Girish Gowdra64503432020-01-07 10:59:10 +053031 "--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",
Orhan Kupusoglu66b00d82020-03-13 12:06:33 +030036 "--tp_ids=64",
37 "--is_group_test=false"
Girish Gowdra64503432020-01-07 10:59:10 +053038 ]
39 networks:
40 - default
41 restart: on-failure
42
43 etcd:
44 image: "quay.io/coreos/etcd:v3.4.1"
45 command: [
46 "etcd",
47 "--name=etcd0",
48 "--advertise-client-urls=http://${DOCKER_HOST_IP}:2379,http://${DOCKER_HOST_IP}:4001",
49 "--listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001",
50 "--initial-advertise-peer-urls=http://${DOCKER_HOST_IP}:2380",
51 "--listen-peer-urls=http://0.0.0.0:2380",
52 "--initial-cluster-token=etcd-cluster-1",
53 "--initial-cluster=etcd0=http://${DOCKER_HOST_IP}:2380",
54 "--initial-cluster-state=new"
55 ]
56 ports:
57 - "2379:2379"
58 - 2380
59 - 4001
60 networks:
61 - default
62 restart: unless-stopped
63
64
65networks:
66 default:
67 driver: bridge