{"id":30883264,"url":"https://github.com/globocom/container-broker","last_synced_at":"2026-03-18T00:37:19.057Z","repository":{"id":54805079,"uuid":"302043587","full_name":"globocom/container-broker","owner":"globocom","description":"Run any Docker-based task in a simple and distributed way","archived":false,"fork":false,"pushed_at":"2023-09-27T10:25:10.000Z","size":652,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-03-03T19:37:42.368Z","etag":null,"topics":["docker","docker-api","hacktoberfest","task-manager","task-runner"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/globocom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-07T13:22:55.000Z","updated_at":"2025-03-29T13:29:29.000Z","dependencies_parsed_at":"2025-09-08T09:44:05.521Z","dependency_job_id":"c998b28f-4801-4d81-8888-1480789fe347","html_url":"https://github.com/globocom/container-broker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/globocom/container-broker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fcontainer-broker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fcontainer-broker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fcontainer-broker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fcontainer-broker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globocom","download_url":"https://codeload.github.com/globocom/container-broker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fcontainer-broker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30637271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-18T00:09:27.587Z","status":"ssl_error","status_checked_at":"2026-03-18T00:09:26.123Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-api","hacktoberfest","task-manager","task-runner"],"created_at":"2025-09-08T09:43:57.052Z","updated_at":"2026-03-18T00:37:19.040Z","avatar_url":"https://github.com/globocom.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Container Broker\n\n## Key Features\n- Run any Docker based task\n- A Node only needs Docker HTTP API\n- Separate Tasks by execution type\n- Easily get Task logs\n- Automatically retry jobs\n- Enqueue tasks if no slots available\n- Distribute load between Nodes\n- If a node dies, tasks are automatically moved to another healthy Node (Failover)\n- Support external volume mounts\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'container-broker'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install container-broker\n\n## Usage\n\n### Routes\n\n#### Nodes\n\n##### List\n  - `GET /nodes`\n\n##### Add\n  - `POST /nodes`\n  - Parameters: `{ \"hostname\": \"\", \"slots_execution_types\": {\"cpu\": 2, \"network\": 10} }`\n\n##### Update\n  - `PATCH /nodes/:uuid`\n  - Parameters: `{ \"slots_execution_types\": {\"cpu\": 2, \"network\": 10} }`\n\n##### Remove\n  - `DELETE /nodes/:uuid`\n  - Parameters: `{ \"slots_execution_types\": {\"cpu\": 2, \"network\": 10} }`\n\n#### Tasks\n\n##### Create\n  - `POST /tasks`\n  - Parameters: `{ \"name\": \"\", \"image\": \"\", \"cmd\": \"\", \"storage_mounts\": \"{}\", \"tags\": {\"type\": \"video\"} }`\n  - Response:\n  ```json\n  {\n    \"status\": \"ok|error\",\n    \"uuid\": \"2d272b5c-953c-44e9-ad15-6c31187903c9\"\n  }\n  ```\n\n##### Task Details\n  - Show information about some job\n  - Parameters (query string): `id`\n  - Response:\n  ```json\n  {\n    \"uuid\": \"2d272b5c-953c-44e9-ad15-6c31187903c9\",\n    \"status\": \"waiting|running|completed|error\"\n  }\n  ```\n\n#### GET /status\n  - Show pool informations\n  - Response:\n  ```json\n  {\n    \"nodes\": [\n      {\n        \"hostname\": \"\",\n        \"cores\": 10,\n        \"memory\": 4096,\n        \"jobs\": [\n          {\n            \"uuid\": \"2d272b5c-953c-44e9-ad15-6c31187903c9\",\n            \"status\": \"waiting|running|completed|error\"\n          }\n        ]\n      }\n    ]\n  }\n  ```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Expose Docker HTTP API on MacOSX:\n```shell\nsocat TCP-LISTEN:2376,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/globocom/container-broker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fcontainer-broker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobocom%2Fcontainer-broker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fcontainer-broker/lists"}