This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Renovator Bot 2d51203afd
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(docker): update rockylinux/rockylinux:8 docker digest to f197fde
2023-05-19 21:07:34 +00:00
overlay/usr/local/bin fix condition to check if local patch directory is present 2020-06-12 09:11:00 +02:00
.drone.yml ci: bump container build plugin to drone-docker-buildx:23 2023-02-09 10:32:27 +01:00
.gitignore [skip ci] remove local changelog 2021-02-11 21:05:36 +01:00
.markdownlint.yml enable markdownlint 2020-10-28 09:05:50 +01:00
.prettierignore chore: end of the year maintenance 2021-12-21 10:59:39 +01:00
Dockerfile.el7 chore(docker): update centos:7 docker digest to be65f48 2022-12-09 20:04:37 +00:00
Dockerfile.el8 chore(docker): update rockylinux/rockylinux:8 docker digest to f197fde 2023-05-19 21:07:34 +00:00
LICENSE chore: end of the year maintenance 2021-12-21 10:59:39 +01:00
README.md feat: build base image for rh8 (#2) 2021-10-23 16:16:55 +02:00
renovate.json fix: disable major version updated for docker files 2021-10-23 22:36:31 +02:00

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.