{"id":13464635,"url":"https://github.com/containerbuildsystem/koji-containerbuild","last_synced_at":"2026-02-25T15:29:08.519Z","repository":{"id":32230898,"uuid":"35804983","full_name":"containerbuildsystem/koji-containerbuild","owner":"containerbuildsystem","description":"Container build support for Koji buildsystem","archived":false,"fork":false,"pushed_at":"2025-03-26T13:55:18.000Z","size":712,"stargazers_count":30,"open_issues_count":5,"forks_count":30,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-02-18T04:57:06.550Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containerbuildsystem.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-18T08:06:46.000Z","updated_at":"2025-03-26T13:54:58.000Z","dependencies_parsed_at":"2024-07-31T14:06:22.847Z","dependency_job_id":null,"html_url":"https://github.com/containerbuildsystem/koji-containerbuild","commit_stats":null,"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"purl":"pkg:github/containerbuildsystem/koji-containerbuild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fkoji-containerbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fkoji-containerbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fkoji-containerbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fkoji-containerbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containerbuildsystem","download_url":"https://codeload.github.com/containerbuildsystem/koji-containerbuild/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fkoji-containerbuild/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29827688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T14:53:59.163Z","status":"ssl_error","status_checked_at":"2026-02-25T14:53:23.002Z","response_time":61,"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":[],"created_at":"2024-07-31T14:00:47.754Z","updated_at":"2026-02-25T15:29:08.478Z","avatar_url":"https://github.com/containerbuildsystem.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Koji containerbuild\n===================\n\n.. image:: https://coveralls.io/repos/containerbuildsystem/koji-containerbuild/badge.svg?branch=master\n   :target: https://coveralls.io/r/containerbuildsystem/koji-containerbuild?branch=master\n.. image:: https://img.shields.io/lgtm/grade/python/g/containerbuildsystem/koji-containerbuild.svg?logo=lgtm\u0026logoWidth=18\n   :target: https://lgtm.com/projects/g/containerbuildsystem/koji-containerbuild/context:python\n.. image:: https://img.shields.io/lgtm/alerts/g/containerbuildsystem/koji-containerbuild.svg?logo=lgtm\u0026logoWidth=18\n   :target: https://lgtm.com/projects/g/containerbuildsystem/koji-containerbuild/alerts\n.. image:: https://github.com/containerbuildsystem/koji-containerbuild/workflows/Linters/badge.svg?branch=master\u0026event=push\n   :target: https://github.com/containerbuildsystem/koji-containerbuild/actions?query=event%3Apush+branch%3Amaster+workflow%3A%22Linters%22\n.. image:: https://github.com/containerbuildsystem/koji-containerbuild/workflows/Unittests/badge.svg?branch=master\u0026event=push\n   :target: https://github.com/containerbuildsystem/koji-containerbuild/actions?query=event%3Apush+branch%3Amaster+workflow%3A%22Unittests%22\n\nThis package extends Koji buildsystem with plugin which allows building\ncontainers via OpenShift buildsystem. Additionally it provides CLI tool to\nsubmit builds based on koji CLI.\n\nMost likely you'll need to run own OpenShift instance. See OpenShift\ndocumentation how to setup that.\n\nSupported versions of python\n----------------------------\n\nPython 2.7+ is supported only by Koji CLI plugin\nPython 3.6+ is supported by all plugins\n\n\nBuild a package\n---------------\n\nTo build the current release, use the following command in the repo directory::\n\n  tito build --rpm\n\nCreate release tarball\n----------------------\n\nTo create tarball for a release run::\n\n  python setup.py sdist\n\nCreate new release\n------------------\n\nCreate upstream release\n~~~~~~~~~~~~~~~~~~~~~~~\n\nIn this upstream repository:\n\n1. Bump release and commit changelog:\n\n    * If this is downstream update, run::\n\n        tito tag\n\n    * If this is upstream update you need to specify version. It needs to be without release part, only dot separated one (for example 0.5.7)::\n\n        tito tag --use-version 0.5.7\n\n2. See last line of tito output which give you a hint how to push commit and tag to remote (for example 0.5.7-1)::\n\n    git push origin\n    git push origin koji-containerbuild-0.5.7-1\n\n\n3. Create srpm::\n\n    tito build --srpm\n\nUpdate downstream release\n~~~~~~~~~~~~~~~~~~~~~~~~~\nFollowing steps are for updating packages in Fedora:\n\n1. Clone or pull latest changes in downstream repository::\n\n    fedpkg co koji-containerbuild\n\n2. Switch to branch which you want to update (e.g. start with master)::\n\n    fedpkg switch-branch master\n\n3. Import srpm created in previos section (for example koji-containerbuild version 0.5.7-1, updating Fedora 24)::\n\n    fedpkg import /tmp/tito/koji-containerbuild-0.5.7-1.f24.src.rpm\n\n  Review changes - there should be single new tarball, entries in changelog looks fine (e.g. not empty).\n\n4. Try to build package as scratch-build::\n\n    fedpkg scratch-build --srpm\n\n5. If build succeeded commit changes to remote and build regular build::\n\n    fedpkg push\n    fedpkg build\n\nUpdate other branches either by merging (preferred) or importing srpm.\n\nPlugin installation\n-------------------\n\nKoji hub\n~~~~~~~~\n\nIf you already use any Koji hub plugin you need to use same path for this\nplugin too. Default path used by Koji hub is `/usr/lib/koji-hub-plugins`.\n\nModify `/etc/koji-hub/hub.conf`:\n\n* set `PluginPath` to a directory which contains `hub_containerbuild.py` from this\n  package.\n\n* add `hub_containerbuild` value to `Plugins`. If you have already some plugin\n  enabled use space as a separator between names.\n\nFinally (graceful) restart httpd daemon.\n\nKoji builder\n~~~~~~~~~~~~\n\nThe Koji builder plugin requires the `osbs-client\n\u003chttps://github.com/projectatomic/osbs-client\u003e`_ package. In Fedora it is part\nof the official repositories. Additionally you'll need to modify\n`/etc/osbs.conf` with the addresses to your OpenShift buildystem instance and\nregistry. Follow the `osbs documentation \u003chttps://osbs.readthedocs.io/\u003e`_.\n\nSimilarly to Koji hub you'll need to find out which path will be used for\nplugins. Default path used by Koji builder is `/usr/lib/koji-builder-plugins`.\n\n* set `PluginPath` to a directory which contains `builder_containerbuild.py` from\n  this package.\n\n* add `builder_containerbuild` value to `Plugins`. Similarly to Koji hub use space\n  to separate existing plugin names.\n\nKoji CLI\n~~~~~~~~\n\nPackage provides CLI binary with interface similar to upstream koji CLI. It\nadds only single new command - `container-build` which allows submitting container\nbuilds to Koji hub.\n\nNo additional configuration is required.\nEverything should be set by `koji` package.\n\n\nPost Install Configuration\n--------------------------\n\nAs the kojiadmin, add builder(s) to the newly created channel and add a\npackage\n\n::\n\n    $ koji add-host-to-channel --new kojibuilder1 container\n    $ koji add-pkg --owner some_koji_user some_koji_target testing\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainerbuildsystem%2Fkoji-containerbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainerbuildsystem%2Fkoji-containerbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainerbuildsystem%2Fkoji-containerbuild/lists"}