You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robert Kaussow 06fa93f388
chore: improve generated changelog
4 months ago
overlay/usr/local/bin fix condition to check if local patch directory is present 1 year ago
.drone.yml switch to docker-buildx 8 months ago
.gitignore [skip ci] remove local changelog 7 months ago
.markdownlint.yml enable markdownlint 11 months ago
.prettierignore chore: improve generated changelog 4 months ago
Dockerfile switch to org.opencontainers container labels 9 months ago
LICENSE update license 7 months ago chore: replace master by main as default branch 9 months ago


CentOS 7 image to build RPM packages

Build Status Docker Hub Source: Gitea License: MIT

Simple Docker image based on CentOS 7 to build RPM packages.

Environment variables


How to use

There are two wrapper scripts around the rpmbuild command you could use:

  • /usr/local/bin/rpmbuild-official: This will simply forward your command to the official binary at /usr/bin/rpmbuild
  • /usr/local/bin/rpmbuil: This is a modified wrapper to prepare the environment before calling rpmbuil

The wrapper /usr/local/bin/rpmbuil will do the following:

  • create $RPMBUILD_BASE_DIR/dist
  • create rpmbuild folder structure (BUILDRPMS|SOURCES|SPECS|SRPMS) under $RPMBUILD_BASE_DIR/dist
  • sync local patchfiles from $RPMBUILD_BASE_DIR/patch to $RPMBUILD_BASE_DIR/dist/SOURCES if the patch folder exist
  • call /bin/rpmbuil with the given parameters


This project is licensed under the MIT License - see the LICENSE file for details.