{"id":19015133,"url":"https://github.com/adfinis/gitlab-pkgbot","last_synced_at":"2025-10-03T16:59:17.812Z","repository":{"id":21433906,"uuid":"90974400","full_name":"adfinis/gitlab-pkgbot","owner":"adfinis","description":"The Package Bot - A simple service which receives HTTP build triggers from GitLab, gets the built packages and puts them in aptly and RPM repos.","archived":false,"fork":false,"pushed_at":"2022-08-16T13:24:59.000Z","size":105,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-17T18:22:55.351Z","etag":null,"topics":["automation","bot","gitlab","gitlab-ci","packages","webhook"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adfinis.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":"2017-05-11T12:01:31.000Z","updated_at":"2022-02-25T09:37:57.000Z","dependencies_parsed_at":"2022-08-17T22:35:28.537Z","dependency_job_id":null,"html_url":"https://github.com/adfinis/gitlab-pkgbot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fgitlab-pkgbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fgitlab-pkgbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fgitlab-pkgbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fgitlab-pkgbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adfinis","download_url":"https://codeload.github.com/adfinis/gitlab-pkgbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354292,"owners_count":21416749,"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":["automation","bot","gitlab","gitlab-ci","packages","webhook"],"created_at":"2024-11-08T19:35:41.609Z","updated_at":"2025-10-03T16:59:12.753Z","avatar_url":"https://github.com/adfinis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab Package Bot\n\nA simple service which receives HTTP build triggers from GitLab, gets the built\npackages and puts them in aptly and RPM repos.\n\n## Installation\n```\n# apt-get install python-yaml python-pip\n# pip install python-gitlab\n``` \n\nClone this repository and switch into the directory:\n```\n# python setup.py install\n# mkdir /var/run/aptly-spooler\n# chown mirror:mirror /var/run/aptly-spooler\n```\n\n## Configuration \u0026 Administration\n\n### Configuration\n\nThe main config file for the bot is located at `/etc/gitlab-pkgbot.yaml`.\n\n### Administration\n\nIt runs as a systemd service. You can view logs with the following command:\n```\n# journalctl -u gitlab-pkgbot.service\n```\n\n## aptly-spooler\n\nSince aptly can only run one command at once, this script sets up a simple\n\"spooler\" for running all aptly commands.\nThis is implemented via a FIFO-Socket located at \n`/var/run/aptly-spooler/fifo.sock`. The socket accepts commands seperated by \nnewlines and executes them one by one.\n\nYou can manually pipe commands into this spooler as well:\n\n```\n# echo \"sleep 10\" \u003e /var/run/aptly-spooler/fifo.sock\n# echo \"ps -efH\" \u003e /var/run/aptly-spooler/fifo.sock\n```\n\nIt runs as a systemd service. You can view logs with the following command:\n```\n# journalctl -u aptly-spooler.service\n```\n\n## Mirror preparation\n\nThe bot copies the extracted packages into a specific directory tree before\nadding them to the specific repositories. Meaning the required directories have\nto be created first:\n```\n# cd /path/to/your/mirror/dir\n# mkdir -p centos/{6,7} redhat/{6,7} debian/{jessie,wheezy} \\\n  ubuntu/{trusty,vivid,xenial}mkdir -p centos/{6,7} rhel/{6,7}\n# chown -R mirror:mirror /path/to/your/mirror/dir\n```\n\n## Contributions\n\nContributions are more than welcome! Please feel free to open new issues or\npull requests.\n\n## License\n\nGNU GENERAL PUBLIC LICENSE Version 3\n\nSee the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadfinis%2Fgitlab-pkgbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadfinis%2Fgitlab-pkgbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadfinis%2Fgitlab-pkgbot/lists"}