diff options
author | kjaniak <kornel.janiak@nokia.com> | 2019-04-23 16:11:37 +0200 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2019-05-10 07:15:41 +0200 |
commit | ca77ff94532f69a4921e7fde8205711e7e1f4426 (patch) | |
tree | ab491025f5ddc226fdb5f346cc3c8ddcdf46529f /plans/dcaegen2-collectors-hv-ves | |
parent | 1a278216453d9d542078c212347940a9a88f9fc6 (diff) |
Switch to DMaaP kafka image
Change-Id: Ib3d58aec92d66a291cf97d5a72d42e7579e265db
Issue-ID: DCAEGEN2-1448
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'plans/dcaegen2-collectors-hv-ves')
4 files changed, 35 insertions, 7 deletions
diff --git a/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml b/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml index 1d34e9f8..eb61db97 100644 --- a/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml +++ b/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml @@ -30,21 +30,39 @@ services: # zookeeper: - image: wurstmeister/zookeeper + image: ${ZOOKEEPER_IMAGE_FULL_NAME} ports: - "2181:2181" networks: - hv-ves-default kafka: - image: wurstmeister/kafka + image: ${KAFKA_IMAGE_FULL_NAME} ports: - "9092:9092" + - "9093:9093" environment: - KAFKA_ADVERTISED_HOST_NAME: "kafka" - KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' + HOST_IP: 127.0.0.1 + KAFKA_BROKER_ID: 0 + ENDPOINT_PORT: 30490 KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" - KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092" + KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" + KAFKA_DELETE_TOPIC_ENABLE: "true" + + KAFKA_LISTENERS: "INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092,EXTERNAL_SASL_PLAINTEXT://0.0.0.0:9093" + KAFKA_ADVERTISED_LISTENERS: "INTERNAL_SASL_PLAINTEXT://:9092,EXTERNAL_SASL_PLAINTEXT://:9093" + KAFKA_ADVERTISED_HOST_NAME: "kafka" + KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT" + KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL_SASL_PLAINTEXT" + KAFKA_SASL_ENABLED_MECHANISMS: "PLAIN" + KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: "PLAIN" + KAFKA_AUTHORIZER_CLASS_NAME: "org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer" + + aaf_locate_url: https://aaf-locate:8095 + KAFKA_LOG_DIRS: /opt/kafka/data + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + KAFKA_DEFAULT_REPLICATION_FACTOR: 1 + KAFKA_NUM_PARTITIONS: 1 volumes: - /var/run/docker.sock:/var/run/docker.sock depends_on: diff --git a/plans/dcaegen2-collectors-hv-ves/testsuites/env.sh b/plans/dcaegen2-collectors-hv-ves/testsuites/env.sh index 05314841..c9e3ff06 100755 --- a/plans/dcaegen2-collectors-hv-ves/testsuites/env.sh +++ b/plans/dcaegen2-collectors-hv-ves/testsuites/env.sh @@ -24,8 +24,13 @@ export JAVA_OPTS="-Dio.netty.leakDetection.level=paranoid" export CONSUL_HOST="consul-server" export CONFIG_BINDING_SERVICE="config-binding-service" -export DOCKER_REGISTRY="nexus3.onap.org:10001" +export ONAP_NEXUS_REGISTRY="nexus3.onap.org:10001" +export DOCKER_REGISTRY=${ONAP_NEXUS_REGISTRY} export DOCKER_REGISTRY_PREFIX="${DOCKER_REGISTRY}/" + +export KAFKA_IMAGE_FULL_NAME="${DOCKER_REGISTRY_PREFIX}onap/dmaap/kafka111:0.0.6" +export ZOOKEEPER_IMAGE_FULL_NAME="${DOCKER_REGISTRY_PREFIX}onap/dmaap/zookeeper:4.0.0" + export CONTAINERS_NETWORK="hv-ves-default" export HV_VES_SERVICE_NAME="hv-ves-collector" export UNENCRYPTED_HV_VES_SERVICE_NAME="unencrypted-hv-ves-collector" diff --git a/plans/dcaegen2-collectors-hv-ves/testsuites/env_local.sh b/plans/dcaegen2-collectors-hv-ves/testsuites/env_local.sh index 20b538b5..a2ae3356 100755 --- a/plans/dcaegen2-collectors-hv-ves/testsuites/env_local.sh +++ b/plans/dcaegen2-collectors-hv-ves/testsuites/env_local.sh @@ -24,8 +24,13 @@ export JAVA_OPTS="-Dio.netty.leakDetection.level=paranoid" export CONSUL_HOST="consul-server" export CONFIG_BINDING_SERVICE="config-binding-service" +export ONAP_NEXUS_REGISTRY="nexus3.onap.org:10001" export DOCKER_REGISTRY="docker.io" export DOCKER_REGISTRY_PREFIX="" + +export KAFKA_IMAGE_FULL_NAME="${ONAP_NEXUS_REGISTRY}/onap/dmaap/kafka111:0.0.6" +export ZOOKEEPER_IMAGE_FULL_NAME="${DOCKER_REGISTRY_PREFIX}onap/dmaap/zookeeper:4.0.0" + export CONTAINERS_NETWORK="hv-ves-default" export HV_VES_SERVICE_NAME="hv-ves-collector" export UNENCRYPTED_HV_VES_SERVICE_NAME="unencrypted-hv-ves-collector" @@ -38,4 +43,3 @@ export HV_VES_VERSION="latest" export HV_VES_IMAGE="hv-collector-main" export DCAE_APP_SIMULATOR_IMAGE="hv-collector-dcae-app-simulator" export XNF_SIMULATOR_IMAGE="hv-ves-collector-xnf-simulator" - diff --git a/plans/dcaegen2-collectors-hv-ves/testsuites/setup.sh b/plans/dcaegen2-collectors-hv-ves/testsuites/setup.sh index 73fdbc23..eb7764e9 100755 --- a/plans/dcaegen2-collectors-hv-ves/testsuites/setup.sh +++ b/plans/dcaegen2-collectors-hv-ves/testsuites/setup.sh @@ -48,5 +48,6 @@ cd collector/ssl cd ../.. docker-compose up -d +docker images --digests mkdir -p ${WORKSPACE}/archives/containers_logs |