|
|
4 years ago | |
|---|---|---|
| .. | ||
| Dockerfile.centos7 | 4 years ago | |
| Dockerfile.centos8 | 4 years ago | |
| README.md | 4 years ago | |
This docker image can be used to build RPM packages.
For more information on docker and containerization technologies, refer to official document.
Dockerfile linkslatest, 8 (Dockerfile)7 (Dockerfile)amd64, arm64v8RPMs will be built in /home/builder/rpmbuild folder, which should contain source archives, patches and built RPM/SRPM files.
If you need to install docker by yourself, follow the official installation guide.
The builder user (UID 1000) is a member of users and wheel, and has password-less sudo as any user, any group.
For CentOS 7
$ docker pull teddysun/rpmbuild:7
For CentOS 8
$ docker pull teddysun/rpmbuild:8
It can be found at Docker Hub.
There is an example to start a container for CentOS 7 like below:
$ mkdir -m 777 -p /opt/builder7
$ docker run -it --rm --name rpmbuild7 -v /opt/builder7:/home/builder/rpmbuild teddysun/rpmbuild:7
There is an example to start a container for CentOS 8 like below:
$ mkdir -m 777 -p /opt/builder8
$ docker run -it --rm --name rpmbuild8 -v /opt/builder8:/home/builder/rpmbuild teddysun/rpmbuild:8