{"id":25189946,"url":"https://github.com/project-openubl/analytics","last_synced_at":"2025-04-04T11:24:17.652Z","repository":{"id":43855513,"uuid":"189955961","full_name":"project-openubl/analytics","owner":"project-openubl","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-08T01:00:36.000Z","size":120,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T21:18:06.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/project-openubl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-03T07:27:49.000Z","updated_at":"2020-01-08T12:57:09.000Z","dependencies_parsed_at":"2023-01-17T23:30:24.950Z","dependency_job_id":null,"html_url":"https://github.com/project-openubl/analytics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-openubl%2Fanalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-openubl%2Fanalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-openubl%2Fanalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-openubl%2Fanalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/project-openubl","download_url":"https://codeload.github.com/project-openubl/analytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247167585,"owners_count":20894964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T21:18:11.664Z","updated_at":"2025-04-04T11:24:17.615Z","avatar_url":"https://github.com/project-openubl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ubl-analytics_analytics\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=ubl-analytics_analytics)\n\nFuse (on Spring Boot) to create a prototype to integrate JPA (with external DB), JMA (AMQ Broker), Drools (remote invocation), Rest APIs, Swagger.\n# Installation\n\n## OKD\n1. install [OKD](https://www.okd.io/) **3.11** following [these instructions](https://github.com/openshift/origin/blob/v3.11.0/docs/cluster_up_down.md)\n1. `oc cluster up`\n1. `oc login -u system:admin`\n1. `oc project openshift`\n\n## Red Hat Registry Service Account\n1. Set up and download an Openshift registry service account following the instructions from https://access.redhat.com/RegistryAuthentication#registry-service-accounts-for-shared-environments-4\n1. `oc create -f \u003csecret\u003e.yaml` (`\u003csecret\u003e` is the name of the downloaded Openshift registry service account)\n1. `oc secrets link default \u003csecret\u003e --for=pull`\n1. `oc secrets link builder \u003csecret\u003e --for=pull`\n\n## Red Hat Decision Manager\nInstructions from https://access.redhat.com/documentation/en-us/red_hat_decision_manager/7.3/html-single/deploying_a_red_hat_decision_manager_authoring_or_managed_server_environment_on_red_hat_openshift_container_platform/index#dm-openshift-prepare-con\n1. Download from https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downloadType=distributions\u0026product=rhdm\u0026productChanged=yes and unzip\n1. `oc create -f ./Downloads/rhdm-7.3-openshift-templates/rhdm73-image-streams.yaml`\n1. `oc import-image rhdm73-decisioncentral-openshift:1.0`\n1. `oc import-image rhdm73-kieserver-openshift:1.0`\n\n## Red Hat AMQ Broker\nInstructions from https://access.redhat.com/documentation/en-us/red_hat_amq/7.3/html-single/deploying_amq_broker_on_openshift_container_platform/index#installing-broker-ocp_broker-ocp\n1. `oc replace --force  -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/73-7.3.0.GA/amq-broker-7-image-streams.yaml`\n1. `oc import-image amq-broker-7/amq-broker-73-openshift --from=registry.redhat.io/amq-broker-7/amq-broker-73-openshift --confirm`\n1. `for template in amq-broker-73-basic.yaml amq-broker-73-ssl.yaml amq-broker-73-custom.yaml amq-broker-73-persistence.yaml amq-broker-73-persistence-ssl.yaml amq-broker-73-persistence-clustered.yaml amq-broker-73-persistence-clustered-ssl.yaml;  do  oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/73-7.3.0.GA/templates/${template};  done`\n\n## Red Hat Fuse\nInstructions from https://access.redhat.com/documentation/en-us/red_hat_fuse/7.3/html-single/fuse_on_openshift_guide/index#get-started-admin-install\n1. `BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-730065-redhat-00002`\n1. `oc create -n openshift -f ${BASEURL}/fis-image-streams.json`\n1. `for template in eap-camel-amq-template.json  eap-camel-cdi-template.json  eap-camel-cxf-jaxrs-template.json  eap-camel-cxf-jaxws-template.json  eap-camel-jpa-template.json  karaf-camel-amq-template.json  karaf-camel-log-template.json  karaf-camel-rest-sql-template.json  karaf-cxf-rest-template.json  spring-boot-camel-amq-template.json  spring-boot-camel-config-template.json  spring-boot-camel-drools-template.json  spring-boot-camel-infinispan-template.json  spring-boot-camel-rest-sql-template.json  spring-boot-camel-teiid-template.json  spring-boot-camel-template.json  spring-boot-camel-xa-template.json  spring-boot-camel-xml-template.json  spring-boot-cxf-jaxrs-template.json  spring-boot-cxf-jaxws-template.json ;  do  oc create -n openshift -f  https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-730065-redhat-00002/quickstarts/${template};  done`\n\n# Deployment\n\n## OCP templates\n### Using OCP Web UI\n1. click on `Create Project` button to create a new project\n1. use `migration-analytics` as value for the name\n1. once the project has been created and added to the list of the available project, click on `migration-analytics`\n1. from the `migration-analytics` Overview page, click on `Import YAML / JSON` button\n1. copy and paste the content of the [analytics_template.json](src/main/resources/okd/analytics_template.json) (using the `Raw` button will let you have the plain text version of this file)\n1. click on `Create` button\n1. check that `Process the template` is selected (no need to select `Save template`)\n1. click on `Continue` button\n1. click on `Create` button (No need to change the form values unless the user wants to customize them)\n### Using `oc` command line tool\n1. `oc login -u developer`\n1. `oc new-project migration-analytics`\n1. `oc create -f \u003csecret\u003e.yaml`\n1. `oc secrets link default \u003csecret\u003e --for=pull`\n1. `oc secrets link builder \u003csecret\u003e --for=pull`\n1. `oc process -f https://raw.githubusercontent.com/project-xavier/xavier-integration/master/src/main/resources/okd/analytics_template.json| oc create -f -`\n\n## Decision Manager\n1. go to Application -\u003e Routes page and click on the URL in the `Hostname` column beside the `myapp-rhdmcentr` service\n1. login with `adminUser`-`SxNhwF2!`\n1. click on `Design` link\n1. click on `Import Project` button\n1. in the `Repository URL` field paste `https://github.com/project-xavier/xavier-analytics.git`\n1. select `sample-analytics` box and click the `OK` button on the upper right side\n1. once the import has finished, click the `Build \u0026 Install` button from the upper right `Build` menu\n1. once the build has been successfully done, click on the `Deploy` button\n\n# Manage\n\n## PostgreSQL\n1. Go to Resources -\u003e Secrets page and select `postgresql` secret for the list of the secrets\n1. Select `Reveal Secret` link to get the `database-name` value\n1. Go to PostgreSQL pod's `Terminal` tab to log in doing `psql \u003cdatabase-name\u003e`\n1. To get the report entries persisted execute `select * from report_data_model;`\n1. To DELETE ALL the report entries execute `truncate table report_data_model;`\n## AMQ Broker\nAMQ Web Console\n## Camel routes\nTo enable the `DEBUG` level for logging, please add the environment variable `logging.level.org` (or whatever package you want) with value `DEBUG` to the the `analytics-integration` deployment configuration. \n# Undeploy\n1. `oc delete all,pvc,secrets -l application=migration-analytics -n migration-analytics`\n\n# References\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproject-openubl%2Fanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproject-openubl%2Fanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproject-openubl%2Fanalytics/lists"}