{"id":15667944,"url":"https://github.com/rupurt/replicant","last_synced_at":"2025-03-30T04:41:27.401Z","repository":{"id":192160948,"uuid":"686187043","full_name":"rupurt/replicant","owner":"rupurt","description":"Query and log based CDC with Ploomber","archived":false,"fork":false,"pushed_at":"2023-09-02T03:51:56.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T06:46:22.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rupurt.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,"governance":null}},"created_at":"2023-09-02T01:12:20.000Z","updated_at":"2023-09-02T03:16:27.000Z","dependencies_parsed_at":"2023-09-03T03:00:05.227Z","dependency_job_id":null,"html_url":"https://github.com/rupurt/replicant","commit_stats":null,"previous_names":["rupurt/replicant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Freplicant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Freplicant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Freplicant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Freplicant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rupurt","download_url":"https://codeload.github.com/rupurt/replicant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277352,"owners_count":20751548,"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":"2024-10-03T14:05:54.464Z","updated_at":"2025-03-30T04:41:27.383Z","avatar_url":"https://github.com/rupurt.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Replicant\n\nKafka based query \u0026 log CDC orchestration with [Ploomber](https://github.com/ploomber/ploomber)\n\n## Setup\n\n1. Install Nix\n\n```shell\n./scripts/boostrap\n```\n\n2. Start a Nix devshell\n\n```shell\nnix develop -c $SHELL\n```\n\n3. Install dependencies, create a k3d cluster, install helm packages/operators \u0026 apply k8s manifests\n\n```shell\n./scripts/setup\n```\n\n## Development\n\nBring the cluster up\n\n```shell\n./scripts/up\n```\n\nApply k8s manifests\n\n```shell\n./scripts/apply\n```\n\nShutdown the cluster when not in use\n\n```shell\n./scripts/down\n```\n\nDestroy the cluster and clean up all resources\n\n```shell\n./scripts/teardown\n```\n\nRun tests for all services\n\n```\n./scripts/tests\n```\n\n## Endpoints\n\nUse proxy scripts to bind services without ingress to a port on the host\n\n```shell\n./scripts/proxy/postgres_source\n./scripts/proxy/postgres_sink\n./scripts/proxy/mariadb_source\n./scripts/proxy/mariadb_sink\n./scripts/proxy/db2_source\n./scripts/proxy/db2_sink\n```\n\n| Service          | URI                                                         |\n| ---------------- | ----------------------------------------------------------- |\n| Grafana          | [grafana.127.0.0.1.nip.io](http://grafana.127.0.0.1.nip.io) |\n| MinIO            | [minio.127.0.0.1.nip.io](http://minio.127.0.0.1.nip.io)     |\n| Kafka Console    | [kafka.127.0.0.1.nip.io](http://kafka.127.0.0.1.nip.io)     |\n| Postgres Source  | [localhost:5532](http://localhost:5532)                     |\n| Postgres Sink    | [localhost:5533](http://localhost:5533)                     |\n| MariaDB Source   | [localhost:51000](http://localhost:51000)                   |\n| MarioDB Sink     | [localhost:51001](http://localhost:51001)                   |\n| Db2 Source       | [localhost:51000](http://localhost:51000)                   |\n| Db2 Sink         | [localhost:51001](http://localhost:51001)                   |\n\n## Kafka\n\nThe `kafka` cluster is managed by the [strimzi operator](https://strimzi.io/docs/operators/latest/configuring).\nYou can communicate with the kafka brokers using [kafkactl](https://github.com/deviceinsight/kafkactl) which has\nbeen [configured](./templates/dot-config/kafkactl/config.yml) to run as a pod within the local k3d cluster.\n\n```shell\nkafkactl -C .config/kafkactl/config.yml produce test.topic -v 'hello world' -r -1\n```\n\n```shell\nkafkactl -C .config/kafkactl/config.yml consume test.topic -b --tail 1\n```\n\n## Db2\n\nA `source` \u0026 `sink` Db2 instance runs within the k8s cluster. To access them in local development use the\nproxy scripts.\n\n```shell\n./scripts/proxy/db2_source\n./scripts/proxy/db2_sink\n```\n\n## Db2\n\nA `source` \u0026 `sink` Db2 instance runs within the k8s cluster. To access them in local development use the\nproxy scripts.\n\n```shell\n./scripts/proxy/db2_source\n./scripts/proxy/db2_sink\n```\n\nConnect to the instances with the credentials\n\n### ksource\n\n- host: `localhost`\n- database: `ksource`\n- port: `51000`\n- user: `db2inst1`\n- password: `password`\n\n### ksink\n\n- host: `localhost`\n- database: `ksink`\n- port: `51001`\n- user: `db2inst1`\n- password: `password`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Freplicant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frupurt%2Freplicant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Freplicant/lists"}