diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | docker-compose.yml | 48 | ||||
-rw-r--r-- | pom.xml | 4 | ||||
-rw-r--r-- | version.properties | 6 |
4 files changed, 64 insertions, 2 deletions
@@ -126,3 +126,11 @@ It's possible to override default configuration. Following environment variables REST_CLIENT_VES_ENDPOINT - VES URL, AVNC events will be send via VES client to this address +## Start avcn-manager +To run avcn manager, config ves and pnf-simulator ip in docker-compose.yaml +REST_CLIENT_VES_ENDPOINT: http://<ves>:8080/eventListener/v7 +REST_CLIENT_VESCLIENT_ENDPOINT: http://<ves-client>:5000/simulator/start + +and start docker-compose + + docker-compose up diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..29fa3c4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,48 @@ +version: '3' + +services: + + avcn-manager: + image: nexus3.onap.org:10003/onap/avcn-manager:latest + ports: + - "9090:8080" + restart: on-failure + hostname: avcn-manager + networks: + - avcn_network + environment: + REST_CLIENT_VES_ENDPOINT: http://ves:8080/eventListener/v7 + KAFKA_BOOTSTRAP_SERVERS: avcn-kafka:9092 + KAFKA_SOURCE_TOPIC: config + KAFKA_APPLICATION_ID: avcn-manager + REST_CLIENT_VESCLIENT_ENDPOINT: http://ves-client:5000/simulator/start + depends_on: + - avcn-kafka + + avcn-zookeeper: + image: wurstmeister/zookeeper + ports: + - "2181:2181" + networks: + - avcn_network + + avcn-kafka: + image: wurstmeister/kafka:1.1.0 + ports: + - "9092:9092" + hostname: avcn-kafka + networks: + - avcn_network + environment: + KAFKA_ADVERTISED_PORT: 9092 + KAFKA_ADVERTISED_HOST_NAME: avcn-kafka + KAFKA_ZOOKEEPER_CONNECT: avcn-zookeeper:2181 + KAFKA_CREATE_TOPICS: "config:1:1" + KAFKA_DELETE_RETENTION_MS: 604800000 + KAFKA_LOG_CLEANER_DELETE_RETENTION_MS: 604800000 + depends_on: + - avcn-zookeeper + +networks: + avcn_network: + driver: bridge @@ -27,10 +27,10 @@ <parent> <groupId>org.onap.oparent</groupId> <artifactId>oparent</artifactId> - <version>3.2.0</version> + <version>2.1.0</version> </parent> - <groupId>org.onap.integration.nfsimulator</groupId> + <groupId>org.onap.integration.simulators.nf-simulator.avcn-manager</groupId> <artifactId>avcn-manager</artifactId> <version>1.0.0-SNAPSHOT</version> <name>avcn-manager</name> diff --git a/version.properties b/version.properties new file mode 100644 index 0000000..32acbf9 --- /dev/null +++ b/version.properties @@ -0,0 +1,6 @@ +major=1 +minor=0 +patch=0 +base_version=${major}.${minor}.${patch} +release_version=${base_version} +snapshot_version=${base_version}-SNAPSHOT
\ No newline at end of file |