{"id":27296300,"url":"https://github.com/zoonman/pipelineelement","last_synced_at":"2025-04-11T23:35:13.987Z","repository":{"id":151087381,"uuid":"231681948","full_name":"zoonman/pipelineelement","owner":"zoonman","description":"A simple pipeline element for Cradle  platform.","archived":false,"fork":false,"pushed_at":"2020-01-06T14:44:03.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T09:17:05.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/zoonman.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,"governance":null}},"created_at":"2020-01-03T23:29:50.000Z","updated_at":"2024-04-15T09:17:05.887Z","dependencies_parsed_at":"2023-04-14T18:32:34.584Z","dependency_job_id":null,"html_url":"https://github.com/zoonman/pipelineelement","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/zoonman%2Fpipelineelement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpipelineelement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpipelineelement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoonman%2Fpipelineelement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoonman","download_url":"https://codeload.github.com/zoonman/pipelineelement/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248496930,"owners_count":21113924,"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-04-11T23:35:13.358Z","updated_at":"2025-04-11T23:35:13.973Z","avatar_url":"https://github.com/zoonman.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Pipeline Element\n\nA simplest implementation of Cradle Platform\nPipeline Element in C++.\n\n## Getting Started\n\n### Toolchain\n\n- clang\n- gcc\n- make\n- cmake\n- Docker\n\n### Dependencies\n\n- boost\n- [rabbitmq-c](https://github.com/alanxz/rabbitmq-c)\n- [libmongoc](https://github.com/mongodb/mongo-c-driver)\n- [mongo-cxx-driver](http://mongocxx.org/mongocxx-v3/installation/)\n- [SimpleAmqpClient](https://github.com/alanxz/SimpleAmqpClient)\n\nUse the following command to pull submodules after cloning\n\n```\ngit submodule update --init --recursive\n```\n\n### Local Building\n\nBuilding to run project locally from CLI\n```shell script\nmake\n```\n\n### Docker Image Building\n\nWe use Docker images as part of the platform therefore your\nworkflow will heavily depend upon using this tool.\n\n \n```shell script\ndocker build . -t analogdevicesinc/cxx-pipeline-processor:latest\n```\n\n#### Start MongoDB locally\n```shell script\ndocker run -d --hostname mongohost  --name ld-mongo -p 27017:27017 -v ~/data:/data/db mongo\n```\nGUI client for MongoDB https://www.robomongo.org/\n\n#### Start RabbitMQ locally\n```shell script\ndocker run -d --hostname rabbithost --name ld-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management\n```\nAccess RabbitMQ UI http://localhost:15672/\n\nLogin: `guest`, password: `guest`.\n\n#### Run built container\nTo run container locally you will need to \nspecify environment variables values in `.env`.\nThe repository contains sample values. You might tweak IP address. \nIt is considered to be a [good practice](https://12factor.net/config) to make `.env.local`, \nput your values inside and never checkout this file into VCS.\n\n    \n\n```shell script\ndocker run --env-file=./.env  analogdevicesinc/cxx-pipeline-processor:latest \n```\nAlways tag your builds properly and make sure that those align with your code tags.\nUse [semantic versioning](https://semver.org/) for your project.\n \n#### View all cmake variables\n```shell script\ncmake -LAH\n```\n\n## Design Notes\n\nBecause pipeline usually contains number of components\nwritten in different languages interopability represents a huge concern.\n\nTo mitigate this concern it is necessary to define common interfaces.\n[Protocol Buffers](https://developers.google.com/protocol-buffers/) seems like a good choice here due to its programming language independence and \n ability to directly translate values into its language dependent constructs.\n \nUsing a shared versioned repository with protocode will address the interop problem. \n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoonman%2Fpipelineelement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoonman%2Fpipelineelement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoonman%2Fpipelineelement/lists"}