{"id":15576561,"url":"https://github.com/abn/rpmbuilder","last_synced_at":"2025-10-08T16:05:49.017Z","repository":{"id":33492508,"uuid":"37138328","full_name":"abn/rpmbuilder","owner":"abn","description":"RPM Builder Container - For all your rpm building needs","archived":false,"fork":false,"pushed_at":"2024-09-03T11:01:39.000Z","size":48,"stargazers_count":7,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T17:35:56.500Z","etag":null,"topics":["container-image","rpm","rpmbuild"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/abn.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-09T14:49:39.000Z","updated_at":"2024-09-03T11:01:42.000Z","dependencies_parsed_at":"2023-01-15T01:08:59.375Z","dependency_job_id":"130f3c0f-65f7-482c-a113-c841813204c6","html_url":"https://github.com/abn/rpmbuilder","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/abn%2Frpmbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Frpmbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Frpmbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abn%2Frpmbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abn","download_url":"https://codeload.github.com/abn/rpmbuilder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232646348,"owners_count":18555272,"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":["container-image","rpm","rpmbuild"],"created_at":"2024-10-02T18:52:04.559Z","updated_at":"2025-10-08T16:05:49.012Z","avatar_url":"https://github.com/abn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://github.com/abn/rpmbuilder/workflows/Image%20Build/badge.svg)](https://github.com/abn/rpmbuilder/actions?query=workflow%3A%22Image+Build%22)\n[![Quay Container](https://quay.io/repository/abn/rpmbuilder/status \"Quay Container\")](https://quay.io/repository/abn/rpmbuilder)\n[![Docker Pulls](https://img.shields.io/docker/pulls/alectolytic/rpmbuilder.svg)](https://hub.docker.com/r/alectolytic/rpmbuilder/)\n\n# RPM build containers for Red Hat based various distros\n\n### Available versions\n\nAvailable versions can be located by\nvisiting [Quay Container Repository](https://quay.io/repository/abn/rpmbuilder?tab=tags).\n\n### Fetch image\n\n```bash\nBUILDER_VERSION=centos-7\npodman pull quay.io/abn/rpmbuilder:${BUILDER_VERSION}\n```\n\n### Run\n\nIn this example `SOURCE_DIR` contains spec file and sources for the the RPM we are building.\n\n```bash\n# set env variables for conviniece\nSOURCE_DIR=$(pwd)/sources\nOUTPUT_DIR=$(pwd)/output\n\n# create a output directory\nmkdir -p ${OUTPUT_DIR}\n\n# build rpm\npodman run --rm -it \\\n    -v ${SOURCE_DIR}:/sources:z \\\n    -v ${OUTPUT_DIR}:/output:z \\\n    -e OUTPUT_USER=$UID \\\n    quay.io/abn/rpmbuilder:${BUILDER_VERSION}\n```\n\nThe output files will be available in `OUTPUT_DIR`.\n\n### Debugging\n\nIf you are creating a spec file, it is often useful to have a clean room debugging environment. You can achieve this by\nusing the following command.\n\n```bash\npodman run --rm -it --entrypoint bash \\\n    -v ${SOURCE_DIR}:/sources:z \\\n    -v ${OUTPUT_DIR}:/output:z \\\n    quay.io/abn/rpmbuilder:${BUILDER_VERSION}\n```\n\nThis command will drop you into a bash shell within the container. From here, you can execute `build` to build the spec\nfile. You can also iteratively modify the specfile and re-run `build`.\n\n## Configuration\n\nThe following configurations are available via environment variables\n\n| Variable | Description                                                    |\n|:---------|:---------------------------------------------------------------|\n| SOURCES  | Configure source directory on the container file system        |\n| OUTPUT   | Configure output directory on the container file system        |\n| RPM_LINT | If set, enables rpm linting once rpms are built                |\n| ARCH     | Target architecture to build the rpm for, defaults to `x86_64` |\n\n## Volumes\n\nThe following volumes can be mounted from the host.\n\n| Volume   | Description                                                      |\n|:---------|:-----------------------------------------------------------------|\n| /sources | Source to build RPM from                                         |\n| /output  | Output directory where all built RPMs and SRPMs are extracted to |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabn%2Frpmbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabn%2Frpmbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabn%2Frpmbuilder/lists"}