aboutsummaryrefslogtreecommitdiffstats
path: root/testsuites/stability/src/main/resources/setup/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/stability/src/main/resources/setup/docker-compose.yml')
-rw-r--r--testsuites/stability/src/main/resources/setup/docker-compose.yml48
1 files changed, 31 insertions, 17 deletions
diff --git a/testsuites/stability/src/main/resources/setup/docker-compose.yml b/testsuites/stability/src/main/resources/setup/docker-compose.yml
index 2fd77d7b..75dd9280 100644
--- a/testsuites/stability/src/main/resources/setup/docker-compose.yml
+++ b/testsuites/stability/src/main/resources/setup/docker-compose.yml
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (C) 2021-2023 Nordix Foundation.
+# Copyright (C) 2021-2024 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -49,23 +49,12 @@ services:
'/opt/app/policy/bin/db_migrator_policy_init.sh',
'mariadb', '3306'
]
- simulator:
- image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_SIMULATOR}
- container_name: simulator
- hostname: simulator
- networks:
- default:
- aliases:
- - message-router
- expose:
- - 3904
- volumes:
- - ./config/jsonConfigs/dmaapSimConfig.json:/opt/app/policy/simulators/etc/mounted/simParameters.json:ro
+
pdp:
image: pdp/simulator
container_name: pdp-simulator
depends_on:
- - simulator
+ - kafka
hostname: pdp-simulator
volumes:
- ./config/wait_for_port.sh:/opt/app/policy/pdp-sim/bin/wait_for_port.sh:ro
@@ -95,7 +84,7 @@ services:
- 6969
depends_on:
- policy-db-migrator
- - simulator
+ - kafka
- policy-api
volumes:
- ./config/wait_for_port.sh:/opt/app/policy/pap/bin/wait_for_port.sh:ro
@@ -105,7 +94,7 @@ services:
command: [
'-c', './policy-pap.sh',
'mariadb', '3306',
- 'message-router', '3904',
+ 'kafka', '9092',
'policy-api', '6969'
]
policy-dist:
@@ -126,7 +115,32 @@ services:
command: [
'-c', './policy-dist.sh',
'mariadb', '3306',
- 'message-router', '3904',
+ 'kafka', '9092',
'policy-api', '6969',
'policy-pap', '6969'
]
+
+ zookeeper:
+ image: confluentinc/cp-zookeeper:latest
+ container_name: zookeeper
+ environment:
+ ZOOKEEPER_CLIENT_PORT: 2181
+ ZOOKEEPER_TICK_TIME: 2000
+ ports:
+ - "2181:2181"
+
+ kafka:
+ image: confluentinc/cp-kafka:latest
+ container_name: kafka
+ depends_on:
+ - zookeeper
+ ports:
+ - "29092:29092"
+ - "9092:9092"
+ environment:
+ KAFKA_BROKER_ID: 1
+ KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+ KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
+ KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1