-
Clone this project on Docker host server
$ git clone https://github.com/wadahiro/mod_auth_openidc_rpmbuild_container.git
-
Build docker image
$ cd mod_auth_openidc_rpmbuild_container $ sudo docker build -t <USERNAME>/mod_auth_openidc_rpmbuild .
-
Start docker container
$ sudo docker run --rm -v $PWD:/shared:rw -it <IMAGE_ID> /bin/bash
-
Check the rpm file and copy to host server
bash-4.1# ls -al /opt/rpmbuild/rpm/RPMS/x86_64/ total 260 drwxr-xr-x 2 root root 4096 Nov 6 09:08 . drwxr-xr-x 3 root root 4096 Nov 6 09:08 .. -rw-r--r-- 1 root root 255986 Nov 6 09:08 mod_auth_openidc-1.7.0-1.el6.x86_64.rpm $ cp /opt/rpmbuild/rpm/RPMS/x86_64/*.rpm /shared
Enjoy!