blob: 0e4e87fd95836128c79b81ddb4c7bcf7d483b6cb [file] [log] [blame]
Rohan Patel4aa83422019-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
Rohan Patele19624e2019-11-11 16:30:46 -050035 docker build -t otf-frontend:0.0.1-SNAPSHOT .
36 docker run -d --network="host" otf-frontend:0.0.1-SNAPSHOT
Rohan Patel4aa83422019-09-30 17:01:25 -040037
38otf-service-api
39 Modify src/main/resources/application.properties according to needs (disable aaf/ssl, set ports)
Rohan Patele19624e2019-11-11 16:30:46 -050040 navigate to otf-service-api folder and run "docker build -t otf-service-api:0.0.1-SNAPSHOT -f docker/Dockerfile ." (maven will run from inside the container, command is inside the Dockerfile)
Rohan Patel4aa83422019-09-30 17:01:25 -040041 docker run -d --network="host" otf-service-api:0.0.1-SNAPSHOT
42
43
44otf-camunda
45 Modify src/main/resources/application.yaml according to needs, and validate the yaml is correct format (disable aaf/ssl, set ports)
Rohan Patele19624e2019-11-11 16:30:46 -050046 navigate to otf-camunda folder and run "docker build -t otf-camunda:0.0.1-SNAPSHOT -f docker/Dockerfile ." (maven will run from inside the container, command is inside the Dockerfile)
Rohan Patel4aa83422019-09-30 17:01:25 -040047 docker run -d --network="host" otf-camunda:0.0.1-SNAPSHOT
48
49Database Notes
50 run sudo installdbs.sh and export PATH=/usr/local/mysql/bin:$PATH to add mysql commands to path
51 run sudo createMongoUser.sh
52 edit mongo to create a replica set by modifying replication and net fields on file /etc/mongod.conf
53 add security: authorization: 'enabled'
54 after script is ran mysql should be able to be used, connect to mysql using the password set by script and mysql command and
55 alter the root password
56 alter user 'root'@'localhost' identified by 'new_password'
57 grant root ability to connect remotely
58 grant all on *.* to 'root'@'%' identified by 'password'
59 create db and exit mysql shell
60 create database 'new_db'
61 create tables using mysql scripts
62 mysql -u root -p db < engine.sql
63 mysql -u root -p db < identity.sql
64