Docker image to support building RPMs in a cleanroom for RHEL 7.x
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
README.md
build-rpm.sh
build.sh

README.md

This repo is used to build a docker image that contains build support based on RHEL7.5. This is used to build RPMs by mounting an rpmbuild directory to /build inside the image.

Build the image with the command:

sudo docker image build --build-arg http_proxy="http://172.17.0.1:3128" --build-arg https_proxy="http://172.17.0.1:3128" -t rhel-rpm-build:latest .

Run the image with the command:

sudo docker run --rm -it --env http_proxy="http://172.17.0.1:3128" --env https_proxy="http://172.17.0.1:3128" --volume /path/to/rpmbuild:/build rhel-rpm-build:latest