aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdyta Krukowska <edyta.krukowska@nokia.com>2021-03-10 09:57:46 +0100
committerEdyta Krukowska <edyta.krukowska@nokia.com>2021-03-10 14:00:52 +0100
commit347cb85feebcf6384b9c464ee1c102695d35f724 (patch)
tree523d54903bbc605f4d7ee8de2814c8b1fd93d99d
parente5ba738691cf34f0d58a47796d6e0d3da7641f33 (diff)
Add missing version.properties and fix groupId
Issue-ID: INT-1869 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Id3e4c228793bdb3a899e47a39008fc0fb46a35d1
-rw-r--r--README.md8
-rw-r--r--docker-compose.yml48
-rw-r--r--pom.xml4
-rw-r--r--version.properties6
4 files changed, 64 insertions, 2 deletions
diff --git a/README.md b/README.md
index 45d8576..b2529a4 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/pom.xml b/pom.xml
index cc0520d..097dbdd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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