summaryrefslogtreecommitdiffstats
path: root/common/src/test/resources/demo/Notes.txt
blob: 315d6407c83c49010754da44159c807ef56d9636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Run DMaaP simulator using Docker
c/Users/${USER}/Github/simulator/distribution
${USER}@S031PC03 MINGW64 ~/Github/simulator/distribution (master)
$ docker run -p 3904:3904 --volume //c/Users/${USER}/Github/simulator/distribution:/opt/app/policy/simulators/etc/mounted:ro --name=dmaap-simulator nexus3.onap.org:10001/onap/policy-models-simulator:latest


Run DMaaP simulator using Maven
Check out policy models
Go to policy/models/models-sim/models-sim-dmaap
mvn exec:java  -Dexec.mainClass=org.onap.policy.models.sim.dmaap.startstop.Main -Dexec.args="-c src/main/resources/etc/DefaultConfig.json"


Run CL from command line
Go to clamp/tosca-controlloop/runtime
mvn exec:java  -Dexec.mainClass=org.onap.policy.clamp.controlloop.runtime.main.startstop.Main -Dexec.args="-c src/test/resources/parameters/TestParametersMariaDB.json"

Run Participant from command line using Maven
mvn spring-boot:run -Dspring-boot.run.arguments="--server.port=8080 --topicServer=localhost"
mvn spring-boot:run -Dspring-boot.run.arguments="--server.port=8081 --topicServer=localhost"
mvn spring-boot:run -Dspring-boot.run.arguments="--server.port=8082 --topicServer=localhost"

Run Participant from command line using Jar
java -jar -Dserver.port=8080 -DtopicServer=localhost target/policy-clamp-participant-impl-simulator-6.1.2-SNAPSHOT.jar
java -jar -Dserver.port=8081 -DtopicServer=localhost target/policy-clamp-participant-impl-dcae-6.1.2-SNAPSHOT.jar
java -jar -Dserver.port=8082 -DtopicServer=localhost target/policy-clamp-participant-impl-policy-6.1.2-SNAPSHOT.jar
java -jar -DtopicServer=localhost target/policy-clamp-participant-impl-kubernetes-6.1.2-SNAPSHOT.jar

Config of DB

Prompt > mysql
MariaDB [(none)]> create database controlloop;
MariaDB [(none)]> CREATE USER 'policy'@localhost IDENTIFIED BY 'P01icY';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON controlloop.* TO 'policy'@'localhost';\
MariaDB [(none)]> SHOW GRANTS for 'policy'@localhost;
+---------------------------------------------------------------------------------------------------------------+
| Grants for policy@localhost                                                                                   |
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO `policy`@`localhost` IDENTIFIED BY PASSWORD '*D0574A541C5DEDF11838FB41CA04E256FD5A04CC' |
| GRANT ALL PRIVILEGES ON `controlloop`.* TO `policy`@`localhost`                                               |
+---------------------------------------------------------------------------------------------------------------+
2 rows in set (0.000 sec)


Run Policy API:
mvn exec:java -Dexec.mainClass=org.onap.policy.api.main.startstop.Main -Dexec.args="-c ../../clamp-tpn/tosca-controlloop/common/src/test/resources/demo/policy-api/PolicyAPIConfig.json"