aboutsummaryrefslogtreecommitdiffstats
path: root/plans/usecases-5G-bulkpm/5G-bulkpm/composefile
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2020-05-06 01:14:00 +0100
committerefiacor <fiachra.corcoran@est.tech>2020-05-12 13:37:28 +0100
commit125390ba301915c0829ad4c0b7eff0c935b6956c (patch)
treec49de4f058ebb4ce93fe90b72816246db7c938e4 /plans/usecases-5G-bulkpm/5G-bulkpm/composefile
parent9c41697bdcef2eddd9af6436f3feb5821c238b44 (diff)
Seperating usecase test suite dependencies
# Refactoring BulkPM Dataplane test suite Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I4b2ad0dc5147e10ffc55f4ec210a29f073cd865b Issue-ID: INT-832 Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Diffstat (limited to 'plans/usecases-5G-bulkpm/5G-bulkpm/composefile')
-rw-r--r--plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-e2e.yml152
-rw-r--r--plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-mr.yml77
2 files changed, 229 insertions, 0 deletions
diff --git a/plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-e2e.yml b/plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-e2e.yml
new file mode 100644
index 00000000..e2f16a7c
--- /dev/null
+++ b/plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-e2e.yml
@@ -0,0 +1,152 @@
+version: '2.1'
+services:
+ datarouter-prov:
+ image: nexus3.onap.org:10001/onap/dmaap/datarouter-prov:latest
+ container_name: dmaap-datarouter-prov
+ hostname: dmaap-dr-prov
+ ports:
+ - "443:8443"
+ - "8443:8443"
+ - "8080:8080"
+ volumes:
+ - ../prov_data/provserver.properties:/opt/app/datartr/etc/provserver.properties
+ - ../prov_data/addSubscriber.txt:/opt/app/datartr/addSubscriber.txt
+ - ../prov_data/addFeed3.txt:/opt/app/datartr/addFeed3.txt
+ depends_on:
+ mariadb_container:
+ condition: service_healthy
+ healthcheck:
+ test: ["CMD", "curl", "-f", "http://dmaap-dr-prov:8080/internal/prov"]
+ interval: 10s
+ timeout: 10s
+ retries: 5
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - datarouter-prov
+ - dmaap-dr-prov
+
+ datarouter-node:
+ image: nexus3.onap.org:10001/onap/dmaap/datarouter-node:latest
+ container_name: dmaap-datarouter-node
+ hostname: dmaap-dr-node
+ ports:
+ - "9443:8443"
+ - "9090:8080"
+ volumes:
+ - ../node_data/node.properties:/opt/app/datartr/etc/node.properties
+ depends_on:
+ datarouter-prov:
+ condition: service_healthy
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - datarouter-node
+ - dmaap-dr-node
+
+ datarouter-subscriber:
+ image: nexus3.onap.org:10001/onap/dmaap/datarouter-subscriber:latest
+ container_name: fileconsumer-node
+ hostname: subscriber.com
+ ports:
+ - "7070:7070"
+ volumes:
+ - ../subscriber_data/subscriber.properties:/opt/app/subscriber/etc/subscriber.properties
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - datarouter-subscriber
+
+ mariadb_container:
+ image: mariadb:10.2.14
+ container_name: dmaap-dr-prov-mariadb
+ ports:
+ - "3306:3306"
+ environment:
+ MYSQL_ROOT_PASSWORD: datarouter
+ MYSQL_DATABASE: datarouter
+ MYSQL_USER: datarouter
+ MYSQL_PASSWORD: datarouter
+ healthcheck:
+ test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "--silent"]
+ interval: 10s
+ timeout: 30s
+ retries: 5
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - datarouter-mariadb
+
+ sftp:
+ container_name: sftp
+ image: atmoz/sftp
+ ports:
+ - "2222:22"
+ command: admin:admin:1001
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - sftp
+
+ ves:
+ container_name: dcaegen2-vescollector
+ image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.4.4
+ environment:
+ DMAAPHOST: dmaap-message-router
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - dcaegen2-ves-collector
+
+ dfc:
+ container_name: dcaegen2-datafile-collector
+ image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest
+ ports:
+ - "8433:8433"
+ volumes:
+ - ./dfc/application.yaml:/opt/app/datafile/config/application.yaml
+ - ./dfc/datafile_endpoints.json:/opt/app/datafile/config/datafile_endpoints.json
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - dcaegen2-datafile-collector
+
+ cbs-sim:
+ container_name: config-binding-service-sim
+ image: mockserver/mockserver:mockserver-5.10.0
+ environment:
+ MOCKSERVER_PROPERTY_FILE: /config/mockserver.properties
+ MOCKSERVER_INITIALIZATION_JSON_PATH: /config/cbs-initializer.json
+ LOG_LEVEL: "DEBUG"
+ SERVER_PORT: 10000
+ volumes:
+ - ./cbs_sim/cbs_mockserver.properties:/config/mockserver.properties
+ - ./cbs_sim/cbs-initializer.json:/config/cbs-initializer.json
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - config-binding-service
+
+ pmmapper:
+ container_name: dcaegen2-pm-mapper
+ image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:latest
+ ports:
+ - "8081:8081"
+ volumes:
+ - ./pm_mapper_certs/cert.jks:/opt/app/pm-mapper/etc/cert.jks:ro
+ - ./pm_mapper_certs/jks.pass:/opt/app/pm-mapper/etc/jks.pass:ro
+ - ./pm_mapper_certs/trust.jks:/opt/app/pm-mapper/etc/trust.jks:ro
+ - ./pm_mapper_certs/trust.pass:/opt/app/pm-mapper/etc/trust.pass:ro
+ environment:
+ CONFIG_BINDING_SERVICE_SERVICE_HOST: config-binding-service
+ CONFIG_BINDING_SERVICE_SERVICE_PORT: 10000
+ HOSTNAME: pmmapper
+ networks:
+ tmp_bulk-pm-network:
+ aliases:
+ - dcae-pm-mapper
+
+networks:
+ tmp_bulk-pm-network:
+ external: true
+
diff --git a/plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-mr.yml b/plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-mr.yml
new file mode 100644
index 00000000..ba30f280
--- /dev/null
+++ b/plans/usecases-5G-bulkpm/5G-bulkpm/composefile/docker-compose-mr.yml
@@ -0,0 +1,77 @@
+version: '2.1'
+services:
+ zookeeper:
+ container_name: dmaap-message-router-zookeeper
+ image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.0.3
+ ports:
+ - "2181:2181"
+ environment:
+ ZOOKEEPER_REPLICAS: 1
+ ZOOKEEPER_TICK_TIME: 2000
+ ZOOKEEPER_SYNC_LIMIT: 5
+ ZOOKEEPER_INIT_LIMIT: 10
+ ZOOKEEPER_MAX_CLIENT_CNXNS: 200
+ ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
+ ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
+ ZOOKEEPER_CLIENT_PORT: 2181
+ KAFKA_OPTS: -Djava.security.auth.login.config=/etc/zookeeper/secrets/jaas/zk_server_jaas.conf -Dzookeeper.kerberos.removeHostFromPrincipal=true -Dzookeeper.kerberos.removeRealmFromPrincipal=true -Dzookeeper.authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider -Dzookeeper.requireClientAuthScheme=sasl
+ ZOOKEEPER_SERVER_ID: 1
+ volumes:
+ - ../zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
+ networks:
+ bulk-pm-network:
+ aliases:
+ - zookeeper
+
+ kafka:
+ container_name: dmaap-message-router-kafka
+ image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.4
+ ports:
+ - "9092:9092"
+ environment:
+ enableCadi: 'false'
+ KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+ KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
+ KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
+ KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
+ KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
+ KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
+ KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
+ KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
+ KAFKA_ZOOKEEPER_SET_ACL: 'true'
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
+ # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
+ KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
+ volumes:
+ - ../kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
+ networks:
+ bulk-pm-network:
+ aliases:
+ - kafka
+ depends_on:
+ - zookeeper
+
+ dmaap-message-router:
+ container_name: dmaap-message-router-server
+ image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.18
+ ports:
+ - "3904:3904"
+ - "3905:3905"
+ environment:
+ enableCadi: 'false'
+ volumes:
+ - ../mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
+ - ../mr/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
+ - ../mr/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
+ networks:
+ bulk-pm-network:
+ aliases:
+ - dmaap-message-router
+ depends_on:
+ - zookeeper
+ - kafka
+
+networks:
+ bulk-pm-network:
+ driver: bridge