Rohan Patel | 7fb4df9 | 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
|
| 35 |
|
| 36 |
|
| 37 | otf-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 |
|
| 45 | otf-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 |
|
| 52 | Database 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 |
|