blob: f40437b72e30ffea2f970aa403802e42cf486256 [file] [log] [blame]
Rohan Patel7fb4df92019-09-30 17:01:25 -04001docker login nexus3.onap.org:10001
2 docker | docker
3
4APP PORT MAPPINGS Internal-k8s External-k8s Docker
5otf-frontend 443 32524 8082
6otf-service-api 8443 32303 8081
7otf-camunda 8443 31313 8080
8otf-ping-test-head 5000 32223 5001
9otf-ssh-test-head 5000 32222 5002
10otf-robot-test-head 5000 32224 5003
11
12otf-ping-test-head
13 comment app.run for ssl
14 uncomment app.run without ssl
15 change port if needed
16 docker build -t otf-ping-test-head:0.0.1-SNAPSHOT .
17 docker run -d --network="host" otf-ping-test-head:0.0.1-SNAPSHOT
18
19otf-ssh-test-head
20 comment app.run for ssl
21 uncomment app.run without ssl
22 change port if needed
23 docker build -t otf-ssh-test-head:0.0.1-SNAPSHOT .
24 docker run -d --network="host" otf-ssh-test-head:0.0.1-SNAPSHOT
25
26otf-robot-test-head
27 comment app.run for ssl
28 uncomment app.run without ssl
29 change port if needed
30 docker build -t otf-robot-test-head:0.0.1-SNAPSHOT .
31 docker run -d --network="host" otf-robot-test-head:0.0.1-SNAPSHOT
32
33
34otf-frontend
35
36
37otf-service-api
38 Modify src/main/resources/application.properties according to needs (disable aaf/ssl, set ports)
39 Add settings.xml from onap website and add profile to use maven default repository and add settings.xml to ~/.m2/ if missing
40 mvn clean install (add flag -DskipTests if it causes the build to fail)
41 navigate to target folder and run "docker build -t otf-service-api:0.0.1-SNAPSHOT ."
42 docker run -d --network="host" otf-service-api:0.0.1-SNAPSHOT
43
44
45otf-camunda
46 Modify src/main/resources/application.yaml according to needs, and validate the yaml is correct format (disable aaf/ssl, set ports)
47 Add settings.xml from onap website and add profile to use maven default repository and add settings.xml to ~/.m2/ if missing
48 mvn clean install (add flag -DskipTests if it causes the build to fail)
49 navigate to target folder and run "docker build -t otf-camunda:0.0.1-SNAPSHOT ."
50 docker run -d --network="host" otf-camunda:0.0.1-SNAPSHOT
51
52Database Notes
53 run sudo installdbs.sh and export PATH=/usr/local/mysql/bin:$PATH to add mysql commands to path
54 run sudo createMongoUser.sh
55 edit mongo to create a replica set by modifying replication and net fields on file /etc/mongod.conf
56 add security: authorization: 'enabled'
57 after script is ran mysql should be able to be used, connect to mysql using the password set by script and mysql command and
58 alter the root password
59 alter user 'root'@'localhost' identified by 'new_password'
60 grant root ability to connect remotely
61 grant all on *.* to 'root'@'%' identified by 'password'
62 create db and exit mysql shell
63 create database 'new_db'
64 create tables using mysql scripts
65 mysql -u root -p db < engine.sql
66 mysql -u root -p db < identity.sql
67