Skip to content
forked from funbox/dkrpm

Dockerized RPM building process powered by RPMBuilder

License

Notifications You must be signed in to change notification settings

simtechdev/dkrpm

 
 

Repository files navigation

About

Dockerized RPM building tool for any platforms based on RPMBuilder.

DemoRequirementsGetting startedPrebuilt imagesUsageShellCheck StatusCreditsLicense

Requirements

  • Docker

Getting started

Install dkrpm shell script to one of available $PATH directory.

sudo cp dkrpm /usr/local/bin/dkrpm
sudo chmod +x /usr/local/bin/dkrpm

Use environment variables DOCKER_RPMBUILDER_IMAGE and DOCKER_PERFECTO_IMAGE to specify custom images.

Prebuilt images

Feel free to use any of the following prebuilt images:

Use Makefile target all to build example images from the source code:

make all

Available repositories

Docker images provide the following repositories by default.

CentOS/RHEL 6
CentOS/RHEL 7

In case you need to setup custom YUM repository, please make changes to Dockerfile and build your own image.

Usage

Usage: dkrpm command source <option>

Commands:

  p or pack             Create RPM package from spec file
  u or unpack           Unpack source files from SRPM package
  c or check            Validate spec file using Perfecto
  d or debug            Run shell command instead of RPMBuilder
  h or help             Show detailed information about command

See "dkrpm help <command>" for information on a specific command.

Examples:

  dkrpm pack htop.spec -V -1
  dkrpm unpack htop-2.0.2-0.el7.src.rpm
  dkrpm check htop.spec
  dkrpm debug htop.spec

ShellCheck Status

Branch Status
master Build Status
develop Build Status

Credits

Anton Novojilov for RPMBuilder and ESSENTIAL KAOS repository.

License

MIT

About

Dockerized RPM building process powered by RPMBuilder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 93.7%
  • Makefile 6.3%