akutz | 77457a6 | 2018-08-22 16:07:21 -0500 | [diff] [blame] | 1 | all: build |
| 2 | |
akutz | 7e7852a | 2018-08-24 12:31:46 -0500 | [diff] [blame^] | 3 | rpm-centos7: |
| 4 | @mkdir -p rpmbuild/centos7/RPMS rpmbuild/centos7/SPECS \ |
| 5 | rpmbuild/centos7/SRPMS \ |
| 6 | rpmbuild/centos7/BUILD/etc/cloud/cloud.cfg.d \ |
| 7 | rpmbuild/centos7/BUILD/usr/lib/python2.7/site-packages/cloudinit/sources |
| 8 | docker build -f Dockerfile.rpmbuild -t rpmbuild:centos7 . |
akutz | 77457a6 | 2018-08-22 16:07:21 -0500 | [diff] [blame] | 9 | docker run --rm -it \ |
| 10 | -v $$(pwd)/rpmmacros:/root/.rpmmacros:ro \ |
akutz | 7e7852a | 2018-08-24 12:31:46 -0500 | [diff] [blame^] | 11 | -v $$(pwd)/rpmbuild/centos7:/root/rpmbuild \ |
| 12 | -v $$(pwd)/rpm.centos7.spec:/root/rpmbuild/SPECS/rpm.spec:ro \ |
akutz | df8fa19 | 2018-08-24 12:21:26 -0500 | [diff] [blame] | 13 | -v $$(pwd)/99_vmx_guestinfo.cfg:/root/rpmbuild/BUILD/etc/cloud/cloud.cfg.d/99_vmx_guestinfo.cfg:ro \ |
akutz | 77457a6 | 2018-08-22 16:07:21 -0500 | [diff] [blame] | 14 | -v $$(pwd)/DataSourceVmxGuestinfo.py:/root/rpmbuild/BUILD/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceVmxGuestinfo.py:ro \ |
akutz | 7e7852a | 2018-08-24 12:31:46 -0500 | [diff] [blame^] | 15 | rpmbuild:centos7 \ |
akutz | 77457a6 | 2018-08-22 16:07:21 -0500 | [diff] [blame] | 16 | rpmbuild -ba /root/rpmbuild/SPECS/rpm.spec |
akutz | 7e7852a | 2018-08-24 12:31:46 -0500 | [diff] [blame^] | 17 | |
| 18 | rpm: rpm-centos7 |
| 19 | |
| 20 | build: rpm |
| 21 | |