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.
Renovator Bot 38a1627882 chore(docker): update rockylinux/rockylinux digest to d62d183 1 month ago
overlay/usr/local/bin fix condition to check if local patch directory is present 2 years ago
.drone.jsonnet adjust dist naming 8 months ago
.drone.yml adjust dist naming 8 months ago
.gitignore [skip ci] remove local changelog 1 year ago
.markdownlint.yml enable markdownlint 2 years ago
.prettierignore chore: end of the year maintenance 6 months ago
Dockerfile.el7 chore(docker): update centos commit hash to c73f515 4 months ago
Dockerfile.el8 chore(docker): update rockylinux/rockylinux digest to d62d183 1 month ago
LICENSE chore: end of the year maintenance 6 months ago
README.md feat: build base image for rh8 (#2) 8 months ago
renovate.json fix: disable major version updated for docker files 8 months ago

README.md

rpmbuild

Base image to build RPM packages

Build Status Docker Hub Quay.io Source: Gitea License: MIT

Simple Docker images based on CentOS 7/Rocky Linux 8 to build RPM packages.

Environment variables

RPMBUILD_BASE_DIR=/drone/src

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

License

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