{"id":20695230,"url":"https://github.com/ibm-cloud-architecture/eda-rt-inventory-gitops","last_synced_at":"2025-03-11T02:29:31.894Z","repository":{"id":37545122,"uuid":"400364378","full_name":"ibm-cloud-architecture/eda-rt-inventory-gitops","owner":"ibm-cloud-architecture","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-30T20:21:05.000Z","size":80950,"stargazers_count":1,"open_issues_count":6,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T18:03:38.725Z","etag":null,"topics":["eda","kafka","kafka-connect","kafka-streams","stream-processing"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibm-cloud-architecture.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-27T02:28:29.000Z","updated_at":"2022-07-11T05:17:16.000Z","dependencies_parsed_at":"2023-01-16T15:16:52.840Z","dependency_job_id":null,"html_url":"https://github.com/ibm-cloud-architecture/eda-rt-inventory-gitops","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/ibm-cloud-architecture%2Feda-rt-inventory-gitops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-cloud-architecture%2Feda-rt-inventory-gitops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-cloud-architecture%2Feda-rt-inventory-gitops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-cloud-architecture%2Feda-rt-inventory-gitops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibm-cloud-architecture","download_url":"https://codeload.github.com/ibm-cloud-architecture/eda-rt-inventory-gitops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242958779,"owners_count":20212864,"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":["eda","kafka","kafka-connect","kafka-streams","stream-processing"],"created_at":"2024-11-17T00:08:32.332Z","updated_at":"2025-03-11T02:29:31.868Z","avatar_url":"https://github.com/ibm-cloud-architecture.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Real time inventory demo GitOps](https://ibm-cloud-architecture.github.io/eda-rt-inventory-gitops)\n\nSee [Mkdocs book view](https://ibm-cloud-architecture.github.io/eda-rt-inventory-gitops) to get demonstration script and installation.\n\nThis project can let you deploy the real-time inventory demonstration on OpenShift or run it locally on your laptop using docker compose.\nFor OpenShift deployment you can\n\n- Use an existing Event Streams deployed (multi-tenants) in `cp4i-eventstreams` namesspace, the topic is using a naming convention to avoid conflicting with other topics alreadt defined in this cluster.\n- Use this repository to deploy a 3 broker cluster in the `rt-inventory-dev` namespace\n\nTo deploy you can use a pure GitOps approach using OpenShift GitOps or use `make` to deploy with `oc CLI` (See the Makefile under the root folder). \n\nBe sure to clone this repository\n\n```sh\ngit clone https://github.com/ibm-cloud-architecture/eda-rt-inventory-gitops.git\n```\n\n## Run locally\n\n* Start IBM Event Streams, IBM MQ, Kafka Connector, the Store Simulator App, the Item aggregator App, the Store aggregator App, and KafDrop to get a user interface to Kafka\n\n```sh\ncd local-demo/kstreams\ndocker-compose up -d\n```\n\n* Should have following docker containers running\n\n\n```sh\ndocker ps\n# output\nIMAGE                                             PORTS                                          NAMES\n   cp.icr.io/cp/ibm-eventstreams-kafka:11.0.2                                                    kstreams-addTopics-1\n   quay.io/ibmcase/item-aggregator              0.0.0.0:8081-\u003e8080/tcp                           item-aggregator\n   quay.io/ibmcase/eda-kconnect-cluster-image   8080/tcp, 0.0.0.0:8083-\u003e8083/tcp                 kconnect\n   obsidiandynamics/kafdrop                     0.0.0.0:9000-\u003e9000/tcp                           kafdrop\n   quay.io/ibmcase/store-aggregator             0.0.0.0:8082-\u003e8080/tcp                           store-aggregator\n   cp.icr.io/cp/ibm-eventstreams-kafka:11.0.2   0.0.0.0:9092-\u003e9092/tcp, 0.0.0.0:29092-\u003e9092/tcp  kafka\n   cp.icr.io/cp/ibm-eventstreams-kafka:11.0.2   0.0.0.0:2181-\u003e2181/tcp                           zookeeper\n   ibmcom/mq                                    0.0.0.0:1414-\u003e1414/tcp, 0.0.0.0:9157-\u003e9157/tcp, 0.0.0.0:9443-\u003e9443/tcp   ibmmq\n```\n\nSee the [demonstration script explanation](https://ibm-cloud-architecture.github.io/eda-rt-inventory-gitops/#run-the-solution-locally) specific to running locally.\n\n## Deploy yo OpenShift\n\n### Using existing Event Streams in multi-tenant\n\n```sh\nmake multi_tenants\n```\n\nThe trace for the execution will looks like:\n\n```\namespace/rt-inventory-dev created\nserviceaccount/rt-inv-job-sa created\nrole.rbac.authorization.k8s.io/secret-mgr created\nrolebinding.rbac.authorization.k8s.io/rt-inventory-dev-rolebinding created\nclusterrolebinding.rbac.authorization.k8s.io/secrets-to-sa created\njob.batch/cpsecret created\nNow using project \"rt-inventory-dev\" on server \"https://api.rey.coc-ibm.com:6443\".\njob.batch/cp-ca-secret created\njob.batch/cp-tls-usr-secret created\njob.batch/cp-scram-usr-secret created\nkafkatopic.eventstreams.ibm.com/eda-rt-item.inventory created\nkafkatopic.eventstreams.ibm.com/eda-rt-items created\nkafkatopic.eventstreams.ibm.com/eda-rt-store.inventory created\nkafkauser.eventstreams.ibm.com/eda-scram-user created\nkafkauser.eventstreams.ibm.com/eda-tls-user created\nconfigmap/mq-config created\nconfigmap/mq-mqsc-config created\nqueuemanager.mq.ibm.com/store-mq created\nkafkaconnect.eventstreams.ibm.com/eda-connect-cluster created\nkafkaconnector.eventstreams.ibm.com/mq-source created\nserviceaccount/store-simulator created\nrolebinding.rbac.authorization.k8s.io/store-simulator-view created\nconfigmap/store-simulator-cm created\nservice/store-simulator created\ndeployment.apps/store-simulator created\nroute.route.openshift.io/store-simulator created\nserviceaccount/store-inventory created\nrolebinding.rbac.authorization.k8s.io/store-inventory-view created\nconfigmap/store-inventory-cm created\nservice/store-aggregator created\ndeployment.apps/store-aggregator created\nroute.route.openshift.io/store-aggregator created\nserviceaccount/item-inventory created\nrolebinding.rbac.authorization.k8s.io/item-inventory-view created\nconfigmap/item-inventory-cm created\nservice/item-inventory created\ndeployment.apps/item-inventory created\nroute.route.openshift.io/item-inventory created\n```\n\nTo remove the deployments do:\n\n```sh\nmake clean_multi_tenants\n```\n\n\n### Deploying Event Streams in the demo project: rt-inventory-dev\n\n```sh\n```\n## List of related projects:\n\n* [A simulator app to send store event: refarch-eda-store-simulator](https://github.com/ibm-cloud-architecture/refarch-eda-store-simulator)\n* [Compute store inventory: refarch-eda-store-inventory](https://github.com/ibm-cloud-architecture/refarch-eda-store-inventory)\n* [Compute item inventory cross store: refarch-eda-item-inventory](https://github.com/ibm-cloud-architecture/refarch-eda-item-inventory)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibm-cloud-architecture%2Feda-rt-inventory-gitops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibm-cloud-architecture%2Feda-rt-inventory-gitops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibm-cloud-architecture%2Feda-rt-inventory-gitops/lists"}