Teddysun b36f24b8d4 Update Dockerfile.rpmbuild10 4 months ago
..
Dockerfile.fedora37 168062f2de Update Dockerfile 1 year ago
Dockerfile.fedora38 168062f2de Update Dockerfile 1 year ago
Dockerfile.fedora39 168062f2de Update Dockerfile 1 year ago
Dockerfile.fedora40 168062f2de Update Dockerfile 1 year ago
Dockerfile.fedora41 168062f2de Update Dockerfile 1 year ago
Dockerfile.fedora42 16c918af89 Added Dockerfile.fedora42 1 year ago
Dockerfile.fedora43 f6e196969f Added Dockerfile.fedora43 4 months ago
Dockerfile.rpmbuild10 b36f24b8d4 Update Dockerfile.rpmbuild10 4 months ago
Dockerfile.rpmbuild7 168062f2de Update Dockerfile 1 year ago
Dockerfile.rpmbuild8 27fca9f438 Update Dockerfile 11 months ago
Dockerfile.rpmbuild9 27fca9f438 Update Dockerfile 11 months ago
README.md f18503bb78 Update README.md 10 months ago

README.md

RHEL RPM package building environment by Teddysun

This docker image can be used to build RPM packages.

For more information on docker and containerization technologies, refer to official document.

Supported tags and respective Dockerfile links

Reference

  • Supported architectures (more info): amd64, arm64

Integration

RPMs will be built in /home/builder/rpmbuild folder, which should contain source archives, patches and built RPM/SRPM files.

Prepare the host

If you need to install docker by yourself, follow the official installation guide.

User Account and Root Access

The builder user (UID 1000) is a member of users and wheel, and has password-less sudo as any user, any group.

Pull the image

For CentOS 7

$ docker pull teddysun/rpmbuild:7

For CentOS 8 Stream / Rockylinux 8 / Almalinux 8

$ docker pull teddysun/rpmbuild:8

For CentOS 9 Stream / Rockylinux 9 / Almalinux 9

$ docker pull teddysun/rpmbuild:9

For CentOS 10 Stream / Rockylinux 10 / Almalinux 10

$ docker pull teddysun/rpmbuild:10

It can be found at Docker Hub.

Start a container

There is an example to start a container for CentOS 7 like below:

$ mkdir -m 777 -p /opt/builder7
$ docker run -it --rm -h buildbot --name rpmbuild7 -v /opt/builder7:/home/builder/rpmbuild teddysun/rpmbuild:7

There is an example to start a container for CentOS 8 Stream / Rockylinux 8 / Almalinux 8 like below:

$ mkdir -m 777 -p /opt/builder8
$ docker run -it --rm -h buildbot --name rpmbuild8 -v /opt/builder8:/home/builder/rpmbuild teddysun/rpmbuild:8

There is an example to start a container for CentOS 9 Stream / Rockylinux 9 / Almalinux 9 like below:

$ mkdir -m 777 -p /opt/builder9
$ docker run -it --rm -h buildbot --name rpmbuild9 -v /opt/builder9:/home/builder/rpmbuild teddysun/rpmbuild:9

There is an example to start a container for CentOS 10 Stream / Rockylinux 10 / Almalinux 10 like below:

$ mkdir -m 777 -p /opt/builder10
$ docker run -it --rm -h buildbot --name rpmbuild10 -v /opt/builder10:/home/builder/rpmbuild teddysun/rpmbuild:10