added updated code for test env
[it/otf.git] / otf-installation.txt
diff --git a/otf-installation.txt b/otf-installation.txt
new file mode 100644 (file)
index 0000000..f40437b
--- /dev/null
@@ -0,0 +1,67 @@
+docker login nexus3.onap.org:10001\r
+   docker | docker\r
+\r
+APP PORT MAPPINGS              Internal-k8s            External-k8s    Docker\r
+otf-frontend                   443                                     32524                   8082\r
+otf-service-api                        8443                            32303                   8081\r
+otf-camunda                            8443                            31313                   8080\r
+otf-ping-test-head             5000                            32223                   5001\r
+otf-ssh-test-head              5000                            32222                   5002\r
+otf-robot-test-head            5000                            32224                   5003\r
+\r
+otf-ping-test-head\r
+   comment app.run for ssl\r
+   uncomment app.run without ssl   \r
+   change port if needed\r
+   docker build -t otf-ping-test-head:0.0.1-SNAPSHOT .\r
+   docker run -d --network="host" otf-ping-test-head:0.0.1-SNAPSHOT\r
+\r
+otf-ssh-test-head\r
+   comment app.run for ssl\r
+   uncomment app.run without ssl   \r
+   change port if needed\r
+   docker build -t otf-ssh-test-head:0.0.1-SNAPSHOT .\r
+   docker run -d --network="host" otf-ssh-test-head:0.0.1-SNAPSHOT\r
+\r
+otf-robot-test-head\r
+   comment app.run for ssl\r
+   uncomment app.run without ssl   \r
+   change port if needed\r
+   docker build -t otf-robot-test-head:0.0.1-SNAPSHOT .\r
+   docker run -d --network="host" otf-robot-test-head:0.0.1-SNAPSHOT\r
+\r
+\r
+otf-frontend\r
+   \r
+\r
+otf-service-api\r
+  Modify src/main/resources/application.properties according to needs (disable aaf/ssl, set ports)\r
+  Add settings.xml from onap website and add profile to use maven default repository and add settings.xml to ~/.m2/ if missing\r
+  mvn clean install (add flag -DskipTests if it causes the build to fail)\r
+  navigate to target folder and run "docker build -t otf-service-api:0.0.1-SNAPSHOT ."\r
+  docker run -d --network="host" otf-service-api:0.0.1-SNAPSHOT\r
+\r
+\r
+otf-camunda\r
+  Modify src/main/resources/application.yaml according to needs, and validate the yaml is correct format (disable aaf/ssl, set ports)\r
+  Add settings.xml from onap website and add profile to use maven default repository and add settings.xml to ~/.m2/ if missing\r
+  mvn clean install (add flag -DskipTests if it causes the build to fail)\r
+  navigate to target folder and run "docker build -t otf-camunda:0.0.1-SNAPSHOT ."\r
+  docker run -d --network="host" otf-camunda:0.0.1-SNAPSHOT\r
+\r
+Database Notes\r
+  run sudo installdbs.sh and export PATH=/usr/local/mysql/bin:$PATH to add mysql commands to path\r
+  run sudo createMongoUser.sh\r
+  edit mongo to create a replica set by modifying replication and net fields on file /etc/mongod.conf\r
+    add security: authorization: 'enabled'\r
+  after script is ran mysql should be able to be used, connect to mysql using the password set by script and mysql command and\r
+    alter the root password\r
+      alter user 'root'@'localhost' identified by 'new_password'\r
+    grant root ability to connect remotely\r
+      grant all on *.* to 'root'@'%' identified by 'password'\r
+    create db and exit mysql shell\r
+      create database 'new_db'\r
+    create tables using mysql scripts\r
+      mysql -u root -p db < engine.sql\r
+      mysql -u root -p db < identity.sql\r
+\r