Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 1 | docker login nexus3.onap.org:10001
|
| 2 | docker | docker
|
| 3 |
|
| 4 | APP PORT MAPPINGS Internal-k8s External-k8s Docker
|
| 5 | otf-frontend 443 32524 8082
|
| 6 | otf-service-api 8443 32303 8081
|
| 7 | otf-camunda 8443 31313 8080
|
| 8 | otf-ping-test-head 5000 32223 5001
|
| 9 | otf-ssh-test-head 5000 32222 5002
|
| 10 | otf-robot-test-head 5000 32224 5003
|
| 11 |
|
| 12 | otf-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 |
|
| 19 | otf-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 |
|
| 26 | otf-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 |
|
| 34 | otf-frontend
|
Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 35 | docker build -t otf-frontend:0.0.1-SNAPSHOT .
|
| 36 | docker run -d --network="host" otf-frontend:0.0.1-SNAPSHOT
|
Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 37 |
|
| 38 | otf-service-api
|
| 39 | Modify src/main/resources/application.properties according to needs (disable aaf/ssl, set ports)
|
Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 40 | 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 Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 41 | docker run -d --network="host" otf-service-api:0.0.1-SNAPSHOT
|
| 42 |
|
| 43 |
|
| 44 | otf-camunda
|
| 45 | Modify src/main/resources/application.yaml according to needs, and validate the yaml is correct format (disable aaf/ssl, set ports)
|
Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame] | 46 | 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 Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 47 | docker run -d --network="host" otf-camunda:0.0.1-SNAPSHOT
|
| 48 |
|
| 49 | Database 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 |
|