Sign inSign up

s33d1ing/rpmbuild

By s33d1ing

•Updated over 5 years ago

Docker RPM Build Environment

Image
0

95

s33d1ing/rpmbuild repository overview

⁠Docker RPM Build Environment

These images are based on the official CentOS⁠ images and have been modified to package the GNU Hello⁠ project.

⁠Supported Architectures

Although the CentOS images support multiple architectures, these images are only built as x86-64.

⁠Usage

Here are some example snippets to help you get started creating a container.

⁠docker-compose
version: "3.8"

services:
  centos-7:
    image: s33d1ing/rpmbuild:el7
    volumes:
      - ./artifacts/7:/home/worker/rpmbuild/RPMS

  centos-8:
    image: s33d1ing/rpmbuild:el8
    volumes:
      - ./artifacts/8:/home/worker/rpmbuild/RPMS
⁠docker cli
docker run -d --name=rpmbuild-el7 -v ./artifacts/7:/home/worker/rpmbuild/RPMS s33d1ing/rpmbuild:el7

docker run -d --name=rpmbuild-el8 -v ./artifacts/8:/home/worker/rpmbuild/RPMS s33d1ing/rpmbuild:el8

⁠Parameters

ParameterFunction
-v /home/worker/rpmbuild/RPMSOutput directory.

⁠Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/s33d1ing/docker-rpmbuild.git

cd docker-rpmbuild

docker-compose up -d --build

Tag summary

Content type

Image

Digest

Size

164.2 MB

Last updated

over 5 years ago

docker pull s33d1ing/rpmbuild:el8